Remap split movement in 'vimrc'

This commit is contained in:
Logan 2015-04-18 11:45:23 -07:00
parent cf7eddf2fd
commit ac01dc015b
1 changed files with 12 additions and 6 deletions

18
vimrc
View File

@ -7,7 +7,7 @@ set nu
set laststatus=2 set laststatus=2
"Auto indent "Auto indent
filetype indent on filetype indent on
set autoindent set autoindent
"Tab "Tab
set tabstop=2 shiftwidth=0 expandtab set tabstop=2 shiftwidth=0 expandtab
set pastetoggle=<F2> set pastetoggle=<F2>
@ -47,7 +47,7 @@ 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 set runtimepath^=~/.vim/ctrlp
""""""""Setup Airline"""""""" """"""""Setup Airline""""""""
let g:airline_theme= 'bubblegum' let g:airline_theme= 'bubblegum'
@ -58,15 +58,21 @@ 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>
nnoremap <leader>w :w <CR> nnoremap <leader>w :w <CR>
nnoremap <leader>i :PluginInstall<CR> nnoremap <leader>i :PluginInstall<CR>
nnoremap <leader>g :Gist<CR> 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/
let g:ctrlp_map = '<leader>p' let g:ctrlp_map = '<leader>p'
let g:ctrlp_cmd = 'CtrlP' let g:ctrlp_cmd = '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