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