X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/80e1e6396316f56a64a1772f0acafe449b87b074..0038a5d6682b9facccbf188b65e1679f5de3b0f9:/vim/vimrc?ds=sidebyside diff --git a/vim/vimrc b/vim/vimrc index a7e23ac..fcd2f58 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -213,7 +213,6 @@ Plug 'derekwyatt/vim-fswitch' Plug 'elzr/vim-json' Plug 'firef0x/pkgbuild.vim' Plug 'junegunn/vim-easy-align' -Plug 'klen/python-mode' Plug 'kshenoy/vim-signature' " Plug 'majutsushi/tagbar' " TODO: delete? {{{2 " map :TagbarToggle @@ -745,7 +744,7 @@ vnoremap zf cabbrev w!! SudoWrite " uppercase previous word -inoremap gUiwgi +inoremap ugUiwgi " http://git.io/v3ZeU nmap qq :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">" @@ -827,16 +826,6 @@ nmap cog IndentGuidesToggle nmap [og IndentGuidesEnable nmap ]og IndentGuidesDisable -" python-mode {{{2 - -let g:pymode_rope_completion = 0 -let g:pymode_rope = 0 -let g:pymode_run = 0 -let g:pymode_folding = 1 -let g:pymode_lint_ignore = "E221,E266,E501" -let g:pymode_lint_cwindow = 0 " don't open cwindow when linting -let g:pymode_syntax_space_errors = 0 " don't bother me when I'm typing - " signature {{{2 " disable '[ mappings @@ -911,8 +900,10 @@ nnoremap gs :set operatorfunc=SortLinesOpFuncg@ vnoremap gs :sort " edit configs {{{2 +" TODO: populate location list with both .vim and .lua files +" TODO: create file if it doesn't exist in nvim or vim rtps function! EditConfig(what, ext = '.vim') - if a:what == 'vimrc' + if a:what == 'vimrc' || a:what == 'init.lua' let l:file = a:what elseif empty(&filetype) echoe 'filetype is empty!' @@ -923,6 +914,7 @@ function! EditConfig(what, ext = '.vim') execute ':Vvsplit! '.file endf +nmap en :call EditConfig('init.lua') nmap ev :call EditConfig('vimrc') nmap ef :call EditConfig('ftplugin') nmap es :call EditConfig('syntax')