Map a few more keys

19892879281cf3a290703bc990a16f5989346418
Alexis Sellier committed ago 1 parent fc6bb525
.vimrc +10 -3
135 135
noremap <C-l> $
136 136
noremap j gj
137 137
noremap k gk
138 138
139 139
" Like '*' but stays on the original word
140 -
nnoremap <C-n>     *N
141 -
nnoremap c*        *Ncgn
142 -
nnoremap <Leader>n :nohl<CR>
140 +
nnoremap <Tab>           *N
141 +
nnoremap c*              *Ncgn
142 +
nnoremap <Leader><Tab>   :nohl<CR>
143 143
144 144
" Remap arrow keys to something useful
145 145
nnoremap <Left>  :cprev<CR>
146 146
nnoremap <Right> :cnext<CR>
147 147
nnoremap <Up>    :bprev<CR>
150 150
" File navigation/search
151 151
nnoremap <C-f>      :Ack!<Space>
152 152
nnoremap <C-p>      :FuzzyOpen<CR>
153 153
nnoremap <BS>       :b#
154 154
155 +
" Navigate relative to the current file
156 +
cmap     %/         %:p:h/
157 +
158 +
" Use standard regexp when searching
159 +
nnoremap /          /\v
160 +
vnoremap /          /\v
161 +
155 162
map <Leader>m       :make<CR>
156 163
map <C-_>           <Plug>NERDCommenterToggle
157 164
map <Leader>.       @:
158 165
map <Leader>e       :e ~/.vimrc<CR>
159 166
map <Leader>s       :source ~/.vimrc<CR>