diff options
Diffstat (limited to 'vimrc')
| -rw-r--r-- | vimrc | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -143,9 +143,13 @@ map <F5> :source ~/.vim/vimrc<CR> map <S-F5> :e ~/.vim/vimrc<CR> map <F7> :tabp<CR> map <F8> :tabn<CR> -map <F9> :w<CR>:!./make.sh<CR> +map <F9> :w<CR>:make<CR> +"map <F10> :!./%:r<CR> +map <F10> :!./a.out<CR> +map <F11> :cnext<CR> +map <S-F11> :cprev<CR> " One has to do :E first in order for this to work -map <F12> :Rex<CR> +"map <F12> :Rex<CR> " <Leader> = '\' when 'mapleader' is empty " Change to the directory of the current file and generate tags recursively " there. @@ -164,6 +168,10 @@ nmap <M-J> <C-W>j nmap <M-K> <C-W>k nmap <M-L> <C-W>l +" Go Title Case (and clear highlighted matches) +" Ref.: vim.fandom.com +vmap gt :s/\<\(\w\)\(\w*\)\>/\u\1\L\2/g<CR><C-L> + " Yanking and pasting " ---------------------------------------------------------------------- |
