-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc.vm
76 lines (57 loc) · 1.77 KB
/
vimrc.vm
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
set nocompatible
set nohlsearch
set modeline
set nu
set ai
set si
" cross hair mode
"set cursorline
"set cursorcolumn
" enable use of the mouse
set mouse=a
" list completion alternatives
set wildmode=list:longest
"au InsertEnter * silent execute "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/cursor_shape ibeam"
"au InsertLeave * silent execute "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/cursor_shape block"
"au VimLeave * silent execute "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/cursor_shape block"
"au VimEnter * silent execute "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/cursor_shape block"
" word wrapping
set wrap
set linebreak
set nolist
set nofoldenable
"colorscheme elflord
" Install Vundle
"git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
" run :PluginInstall
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'scrooloose/syntastic'
"Plugin 'christoomey/vim-tmux-navigator'
Plugin 'mileszs/ack.vim'
Plugin 'moll/vim-bbye'
call vundle#end()
if executable('ag')
let g:ackprg = 'ag --nogroup --nocolor --column'
endif
"
"
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_enable_perl_checker = 1
let g:syntastic_loc_list_height = 1
cmap w!! w !sudo tee > /dev/null % <CR>
"map w!! w !sudo tee > /dev/null % <CR>
set ttymouse=xterm2
set ttyfast
" eliminate trailing whitespace
autocmd BufWritePre *.py %s/\s\+$//e
set ttimeoutlen=10
nnoremap <Leader>q :Bdelete<CR>