From 1356808cc6f5a749d0d8d6e46fb417f09b9c2f5a Mon Sep 17 00:00:00 2001 From: shmibs Date: Tue, 4 Mar 2014 22:03:13 -0700 Subject: added dmenu-based switcher also started using mpv --- .vimrc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index 2b1863f..0f247da 100644 --- a/.vimrc +++ b/.vimrc @@ -11,6 +11,10 @@ map :tabnew nnoremap = Oj nnoremap + O +"disable auto session save/load +let g:session_autosave = 'no' +let g:session_autoload = 'no' + "copy words from above and below the cursor inoremap pumvisible() ? "\" : matchstr(getline(line('.')-1), '\%' . virtcol('.') . 'v\%(\k\+\\|.\)') inoremap pumvisible() ? "\" : matchstr(getline(line('.')+1), '\%' . virtcol('.') . 'v\%(\k\+\\|.\)') @@ -38,6 +42,7 @@ end "with viml), so separate lines it is. autocmd FileType c call Settings_c() autocmd FileType cpp call Settings_c() +autocmd FileType perl call Settings_perl() function! Settings_c() "i want autoindent as the default, and doing that along with @@ -45,3 +50,9 @@ function! Settings_c() setlocal cindent endfunction +function! Settings_perl() + "i want autoindent as the default, and doing that along with + "filetype indent on yields wonky results + setlocal smartindent +endfunction + -- cgit v1.2.3