summaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc8
1 files changed, 5 insertions, 3 deletions
diff --git a/vimrc b/vimrc
index 3169eef..62f76b5 100644
--- a/vimrc
+++ b/vimrc
@@ -89,8 +89,10 @@ nmap ; za
nmap <F10> :setlocal invfoldenable<CR>
"buffer moving
-nmap <ESC>l :bn<CR>
-nmap <ESC>h :bN<CR>
+nmap <ESC>h :tabN<CR>
+nmap <ESC>j :bn<CR>
+nmap <ESC>k :bN<CR>
+nmap <ESC>l :tabn<CR>
" When editing a file, always jump to the last known cursor position.
" Don't do it when the position is invalid or when inside an event handler
@@ -139,7 +141,7 @@ endif
" F*cking whitespaces
autocmd BufRead * highlight ExtraWhitespace ctermbg=red ctermfg=black guibg=red
-autocmd BufRead * match ExtraWhitespace /\s\+$\| \+\ze\t\| \+\|\t\zs \+/
+autocmd BufRead * match ExtraWhitespace /\s\+$\| \+\ze\t\| \+\| \+\|\t\zs \+/
set list listchars=tab:│ ,precedes:‥,extends:‥
nmap <F3> :set invlist<CR>