.vimrc: Toggle colorcolumn and remove whitespace

This commit is contained in:
Jakub Fojt
2019-10-31 10:09:16 +01:00
parent c0f6bb96dd
commit fc0ee648e0

3
.vimrc
View File

@@ -166,6 +166,8 @@ nmap <Leader>/g /[<=>]\{7,}.*$<CR>
" Toggle wrapping of long lines " Toggle wrapping of long lines
nmap <Leader>l :set wrap!<CR> nmap <Leader>l :set wrap!<CR>
" Strip trailing whitespace
nmap <Leader><space> :TrailWhitespace <CR>
" Scroll window while keeping cursor on same line with shift " Scroll window while keeping cursor on same line with shift
nmap <S-j> <c-e> nmap <S-j> <c-e>
nmap <S-k> <c-y> nmap <S-k> <c-y>
@@ -175,4 +177,5 @@ vmap <S-k> <c-y>
" Misc. " Misc.
map <Leader>n :noh<CR> map <Leader>n :noh<CR>
vmap <Leader>T :'<,'> Tabularize / vmap <Leader>T :'<,'> Tabularize /
nnoremap <leader>c :execute "set colorcolumn=" . (&colorcolumn == "" ? "120" : "")<CR>
noremap <space> : noremap <space> :