Skip to content

Commit 8295032

Browse files
author
Gaspar Chilingarov
committed
adds misc shortcuts
1 parent 5b93a30 commit 8295032

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

ftplugin/elixir.vim

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff 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`
174174
nmap <F2> :w<CR>
@@ -178,6 +178,17 @@ imap <F2> <Esc>:w<CR>a
178178
map <C-K><C-w> :%s#\<<c-r><c-w>\>#
179179
map <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
182193
cab bdd bp\|bd #
183194

0 commit comments

Comments
 (0)