170 " K: doc, gK: Doc w/o using syntax hints, gKK: doc current filename |
170 " K: doc, gK: Doc w/o using syntax hints, gKK: doc current filename |
171 nmap K :call ViewDoc('doc', '<cword>')<CR> |
171 nmap K :call ViewDoc('doc', '<cword>')<CR> |
172 nmap gK :call ViewDoc('doc', expand('<cword>'))<CR> |
172 nmap gK :call ViewDoc('doc', expand('<cword>'))<CR> |
173 nmap gKK :call ViewDoc('doc', expand('%'))<CR> |
173 nmap gKK :call ViewDoc('doc', expand('%'))<CR> |
174 |
174 |
|
175 " Tabular shortcuts |
|
176 map <leader>te :Tabularize first_eq<CR> |
|
177 map <leader>ta :Tabularize first_arrow<CR> |
175 |
178 |
176 function! AutoFmtToggle() |
179 function! AutoFmtToggle() |
177 if &formatoptions =~ 'a' |
180 if &formatoptions =~ 'a' |
178 setl fo-=a |
181 setl fo-=a |
179 echo '-a' |
182 echo '-a' |