File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ map <Leader>: =:Tabularize /\v(:)@<=\s/l0<CR>
168168" imap <C-k><C-]> <C-k>]
169169
170170
171- set wildignore = * .o ,* .obj,* .beam
171+ set wildignore = * .o ,* .obj,* .beam, * .swp
172172
173173" save file like in `borland-ides`
174174nmap <F2> :w<CR>
@@ -178,6 +178,17 @@ imap <F2> <Esc>:w<CR>a
178178map <C-K><C-w> :%s#\<<c-r><c-w> \>#
179179map <C-K><C-a> :%s#\<<c-r><c-a> \>#
180180
181+ " lookup item under the cursor in file and show the list of
182+ " entries
183+ "
184+ " map ctrl-enter to jump to n-th match in list (gvim)
185+ map <C-CR> [I:let nr = input("Which one: ")<Bar> exe "normal " . nr ."[\t"<CR>
186+ " for vim
187+ map <Leader> ;; [I:let nr = input("Which one: ")<Bar> exe "normal " . nr ."[\t"<CR>
188+
189+ map <C-K><C-l> :exec 'match NonText /\<' . expand("<cword> ") . '\>/'<CR>
190+
191+
181192" delete buffer and keep split
182193cab bdd bp \| bd #
183194
You can’t perform that action at this time.
0 commit comments