Mercurial > dotfiles.old
comparison vimrc @ 33:3bc2e4f5cc59
Update latex template
author | zegervdv <zegervdv@me.com> |
---|---|
date | Sat, 05 Apr 2014 14:12:00 +0200 |
parents | 2da8d8daa033 |
children | 3ed98613040a |
comparison
equal
deleted
inserted
replaced
32:2da8d8daa033 | 33:3bc2e4f5cc59 |
---|---|
97 | 97 |
98 " remap tag-search to better place | 98 " remap tag-search to better place |
99 nmap <C-$> <C-]> | 99 nmap <C-$> <C-]> |
100 | 100 |
101 " Jump to end of line in insert mode | 101 " Jump to end of line in insert mode |
102 inoremap <C-a> <C-o>I | |
102 inoremap <C-e> <C-o>A | 103 inoremap <C-e> <C-o>A |
103 | 104 |
104 " Jump one character in insert mode | 105 nnoremap <C-a> ^ |
105 inoremap <C-f> <C-o>l | 106 nnoremap <C-e> $ |
107 | |
108 nnoremap + <C-a> | |
109 | |
110 " Jump out of inner bracket | |
111 inoremap <C-f> <ESC>%%a | |
106 | 112 |
107 " Switch between the last two files | 113 " Switch between the last two files |
108 nnoremap <SPACE><SPACE> <C-^> | 114 nnoremap <SPACE><SPACE> <C-^> |
109 | 115 |
110 " Very Magic search patterns | 116 " Very Magic search patterns |
120 nnoremap <C-l> <C-w><C-l> | 126 nnoremap <C-l> <C-w><C-l> |
121 nnoremap <C-h> <C-w><C-h> | 127 nnoremap <C-h> <C-w><C-h> |
122 nnoremap <C-j> <C-w><C-j> | 128 nnoremap <C-j> <C-w><C-j> |
123 nnoremap <C-k> <C-w><C-k> | 129 nnoremap <C-k> <C-w><C-k> |
124 | 130 |
131 " highlight last inserted text | |
132 nnoremap gV `[v`] | |
133 | |
134 " Briefly change colour of last highlight | |
125 nnoremap <silent> n n:call HLNext(0.4)<cr> | 135 nnoremap <silent> n n:call HLNext(0.4)<cr> |
126 nnoremap <silent> N N:call HLNext(0.4)<cr> | 136 nnoremap <silent> N N:call HLNext(0.4)<cr> |
127 | 137 |
128 function! HLNext (blinktime) | 138 function! HLNext (blinktime) |
129 highlight WhiteOnRed ctermfg=white ctermbg=red guifg=white guibg=red | 139 highlight WhiteOnRed ctermfg=white ctermbg=red guifg=white guibg=red |
219 " ctrl p - Fuzzy file finder | 229 " ctrl p - Fuzzy file finder |
220 noremap <C-p> :CtrlP<CR> | 230 noremap <C-p> :CtrlP<CR> |
221 let g:ctrl_map = '<c-p>' | 231 let g:ctrl_map = '<c-p>' |
222 let g:ctrl_cmd = 'CtrlP' | 232 let g:ctrl_cmd = 'CtrlP' |
223 | 233 |
224 map <C-m> :CtrlPBuffer<CR> | 234 nnoremap <C-o> :CtrlPBuffer<CR> |
225 " map <C-m> :CtrlPTag<CR> | 235 " map <C-m> :CtrlPTag<CR> |
226 | 236 |
227 if executable('ag') | 237 if executable('ag') |
228 let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""' | 238 let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""' |
229 let g:ctrlp_use_caching = 0 | 239 let g:ctrlp_use_caching = 0 |