Remap split movement in 'vimrc'
This commit is contained in:
parent
cf7eddf2fd
commit
57d345f4a2
1 changed files with 14 additions and 3 deletions
17
vimrc
17
vimrc
|
@ -47,8 +47,6 @@ Bundle 'ervandew/supertab'
|
||||||
call vundle#end() " required
|
call vundle#end() " required
|
||||||
filetype plugin indent on " required
|
filetype plugin indent on " required
|
||||||
|
|
||||||
set runtimepath^=~/.vim/ctrlp
|
|
||||||
|
|
||||||
""""""""Setup Airline""""""""
|
""""""""Setup Airline""""""""
|
||||||
let g:airline_theme= 'bubblegum'
|
let g:airline_theme= 'bubblegum'
|
||||||
|
|
||||||
|
@ -58,7 +56,7 @@ let g:gitgutter_signs = 1
|
||||||
let g:gitgutter_highlight_lines = 0
|
let g:gitgutter_highlight_lines = 0
|
||||||
|
|
||||||
""""""""Setup AutoClose""""""""
|
""""""""Setup AutoClose""""""""
|
||||||
let g:AutoClosePairs = "() {} \" ` ' []"
|
let g:AutoClosePairs = "() {} \" ` ' [] <>"
|
||||||
|
|
||||||
""""""""Leader Commands""""""""
|
""""""""Leader Commands""""""""
|
||||||
nnoremap <leader>n :NERDTreeToggle <CR>
|
nnoremap <leader>n :NERDTreeToggle <CR>
|
||||||
|
@ -68,5 +66,18 @@ nnoremap <leader>g :Gist<CR>
|
||||||
nnoremap <leader>q :q<CR>
|
nnoremap <leader>q :q<CR>
|
||||||
nnoremap <leader>x :x<CR>
|
nnoremap <leader>x :x<CR>
|
||||||
nnoremap <leader>r :%s/
|
nnoremap <leader>r :%s/
|
||||||
|
|
||||||
|
""""""Setup ctlp""""""
|
||||||
let g:ctrlp_map = '<leader>p'
|
let g:ctrlp_map = '<leader>p'
|
||||||
let g:ctrlp_cmd = 'CtrlP'
|
let g:ctrlp_cmd = 'CtrlP'
|
||||||
|
set runtimepath^=~/.vim/ctrlp
|
||||||
|
|
||||||
|
""""""Remap split movement""""""
|
||||||
|
map <c-j> <c-w>j
|
||||||
|
map <c-k> <c-w>k
|
||||||
|
map <c-h> <c-w>h
|
||||||
|
map <c-l> <c-w>l
|
||||||
|
|
||||||
|
""""""Improve indent in visual mode""""""
|
||||||
|
vnoremap < <gv
|
||||||
|
vnoremap > >gv
|
||||||
|
|
Loading…
Reference in a new issue