-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvim_setting.sh
More file actions
executable file
·99 lines (67 loc) · 1.69 KB
/
vim_setting.sh
File metadata and controls
executable file
·99 lines (67 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#!/bin/bash
if [ -x /usr/bin/vim ]; then
:
else
if [ -x /usr/bin/apt ]; then
sudo apt-get install vim
elif [ -x /usr/bin/yum ]; then
sudo yum -y install vim
fi
fi
if [ -x /usr/bin/ctags ]; then
:
else
if [ -x /usr/bin/apt ]; then
sudo apt-get install ctags
elif [ -x /usr/bin/yum ]; then
sudo yum -y install ctags
elif [ -x /usr/bin/pacman ]; then
sudo pacman -S ctags
fi
fi
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
cat > ~/.vimrc << "EOF"
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'vim-airline/vim-airline'
Plugin 'scrooloose/nerdtree'
Plugin 'scrooloose/syntastic'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'baines/vim-colorscheme-thaumaturge' "color
Plugin 'morhetz/gruvbox' "color
Plugin 'taglist-plus'
call vundle#end()
filetype plugin indent on
let g:ctrlp_custom_ignore = {
\ 'dir': '\.git$\|public$\|log$\|tmp$\|vendor$',
\ 'file': '\v\.(exe|so|dll)$'
\ }
let Tlist_Ctags_Cmd = "/usr/bin/ctags"
let Tlist_Inc_Winwidth = 0
let Tlist_Exit_OnlyWindow = 0
let Tlist_Auto_Open = 0
let Tlist_Use_Right_Window = 1
set ic
set nu
set softtabstop=4
set shiftwidth=4
set formatoptions=croql
set ruler
set showmode
set smartindent
set splitright "locate new vsplit window at right panel
"this makes backspace key work properly in gvim on Windows
"set backspace=2
"this makes Copy&Past(Ctrl + C, Ctrl + V) shortcut work properly on Windows
"set guioptions+=a
"set guifont=Fixedsys:h12
syntax on
color gruvbox
set background=dark
map ;n <ESC>:NERDTreeToggle<CR>
map ;t <ESC>:TlistToggle<CR>
EOF
vim -c PluginInstall