aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vim/.vimrc11
1 files changed, 7 insertions, 4 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index 0cba1ab..ad1e908 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -23,11 +23,14 @@ set foldmethod=indent
23set listchars=trail:·,tab:▸\ ,eol:¬ 23set listchars=trail:·,tab:▸\ ,eol:¬
24set scrolloff=1 24set scrolloff=1
25 25
26" Save as sudo
27cnoremap w!! w !sudo tee > /dev/null %
28
26" Switch windows with <C-W>[direction] 29" Switch windows with <C-W>[direction]
27map <C-J> <C-W>j 30noremap <C-J> <C-W>j
28map <C-K> <C-W>k 31noremap <C-K> <C-W>k
29map <C-H> <C-W>h 32noremap <C-H> <C-W>h
30map <C-L> <C-W>l 33noremap <C-L> <C-W>l
31 34
32" Never use the arrow keys 35" Never use the arrow keys
33noremap <Up> "" 36noremap <Up> ""