Some keymapping changes
a0a52a5c2ec34f48308e5c9c1071c62350b590e0
1 parent
52f07ef2
.vimrc
+7 -6
| 148 | 148 | noremap <C-l> $ |
|
| 149 | 149 | noremap j gj |
|
| 150 | 150 | noremap k gk |
|
| 151 | 151 | ||
| 152 | 152 | " Like '*' but stays on the original word |
|
| 153 | - | nnoremap <Tab> *N |
|
| 153 | + | nnoremap <C-n> *N |
|
| 154 | 154 | nnoremap c* *Ncgn |
|
| 155 | 155 | nnoremap <Leader><Tab> :nohl<CR> |
|
| 156 | 156 | ||
| 157 | 157 | " Select recently pasted text |
|
| 158 | 158 | nnoremap <leader>p V`] |
|
| 159 | 159 | ||
| 160 | - | " Remap arrow keys to something useful |
|
| 161 | - | nnoremap <Left> :cprev<CR> |
|
| 162 | - | nnoremap <Right> :cnext<CR> |
|
| 163 | - | nnoremap <Up> :bprev<CR> |
|
| 164 | - | nnoremap <Down> :bnext<CR> |
|
| 160 | + | " Switch buffers easily |
|
| 161 | + | nnoremap <Tab> :b#<CR> |
|
| 162 | + | ||
| 163 | + | " Actually easier to type and I do it by mistake anyway |
|
| 164 | + | cnoreabbrev W w |
|
| 165 | + | cnoreabbrev Q q |
|
| 165 | 166 | ||
| 166 | 167 | " File navigation/search |
|
| 167 | 168 | nnoremap <C-f> :Ack!<Space> |
|
| 168 | 169 | nnoremap <C-p> :FuzzyOpen<CR> |
|
| 169 | 170 | nnoremap <BS> :b# |