keep visual selection when changing indent

This commit is contained in:
Josh Holtrop 2012-12-07 21:57:58 -05:00
parent b8c14a30ce
commit c1bc807b00

4
vimrc
View File

@ -80,6 +80,10 @@ map <Leader>j Ji<CR><Esc>
map <C-N> :cn<CR> map <C-N> :cn<CR>
map <C-P> :cp<CR> map <C-P> :cp<CR>
" ---- Indenting Visual Blocks ----
vnoremap < <gv
vnoremap > >gv
if has("autocmd") if has("autocmd")
autocmd FileType text setlocal noautoindent autocmd FileType text setlocal noautoindent
autocmd FileType c syn match Constant display "\<[A-Z_][A-Z_0-9]*\>" autocmd FileType c syn match Constant display "\<[A-Z_][A-Z_0-9]*\>"