keep visual selection when changing indent
This commit is contained in:
parent
b8c14a30ce
commit
c1bc807b00
4
vimrc
4
vimrc
@ -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]*\>"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user