moar vim tweaks
This commit is contained in:
parent
7804e021e9
commit
5af7ff17ba
1 changed files with 10 additions and 2 deletions
12
vimrc
12
vimrc
|
@ -40,7 +40,9 @@ autocmd FileType python setlocal sts=4 sw=4 expandtab
|
|||
map <S-Insert> <MiddleMouse>
|
||||
" map buffers to leader buffer number
|
||||
for i in range(1,9)
|
||||
execute 'nmap <C-W>' . i . ' :buffer ' . i . '<cr>'
|
||||
execute 'nmap <C-W>'.i.' :b'.i.'<cr>'
|
||||
execute 'nmap <C-W>s'.i. ' :sb'.i.'<cr>'
|
||||
execute 'nmap <C-W>v'.i.' :vert sb'.i.'<cr>'
|
||||
endfor
|
||||
|
||||
" nmaps
|
||||
|
@ -64,13 +66,18 @@ if v:version >= 703
|
|||
" general plugins
|
||||
Plugin 'bling/vim-airline' "stylish info display
|
||||
Plugin 'bling/vim-bufferline' "stylish buffer display
|
||||
Plugin 'kien/ctrlp.vim' "some quick file accessiong goodness
|
||||
Plugin 'mbbill/undotree' "undo buffer manager
|
||||
Plugin 'mhinz/vim-signify' "version control system gutter info
|
||||
Plugin 'msanders/snipmate.vim' "snippets support
|
||||
Plugin 'scrooloose/nerdcommenter' "comment manager
|
||||
Plugin 'scrooloose/nerdtree' "file manager
|
||||
Plugin 'scrooloose/syntastic' "syntax checker
|
||||
Plugin 'tpope/vim-surround' "quotes replacement made easy
|
||||
|
||||
" experimenting
|
||||
Plugin 'buffet.vim' "horribly outdated, replace with version from bitbucket
|
||||
|
||||
" colorscheme ...
|
||||
Plugin 'vdrandom/forked-solarized.vim' "solarized
|
||||
Plugin 'nanotech/jellybeans.vim' "jellybeans
|
||||
|
@ -94,7 +101,8 @@ if v:version >= 703
|
|||
let g:signify_sign_change = '~'
|
||||
|
||||
" nerdtree options
|
||||
map <C-W>k :NERDTreeToggle<cr>
|
||||
let NERDTreeDirArrows=0
|
||||
map <C-W>. :NERDTreeToggle<cr>
|
||||
autocmd StdinReadPre * let s:std_in=1
|
||||
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue