aboutsummaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
authorshmibs <shmibs@gmail.com>2014-03-04 22:03:13 -0700
committershmibs <shmibs@gmail.com>2014-03-04 22:03:13 -0700
commit1356808cc6f5a749d0d8d6e46fb417f09b9c2f5a (patch)
treee3090f1ecf209627ec49c52b48e0525c22a4f594 /.vimrc
parente31de6c4cff8a6dc20a23dfc660da8a0d8127fa4 (diff)
downloaddotfiles-1356808cc6f5a749d0d8d6e46fb417f09b9c2f5a.tar.gz
added dmenu-based switcher
also started using mpv
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc11
1 files changed, 11 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index 2b1863f..0f247da 100644
--- a/.vimrc
+++ b/.vimrc
@@ -11,6 +11,10 @@ map <C-t> <Esc>:tabnew<CR>
nnoremap = O<Esc>j
nnoremap + O<Esc>
+"disable auto session save/load
+let g:session_autosave = 'no'
+let g:session_autoload = 'no'
+
"copy words from above and below the cursor
inoremap <expr> <c-y> pumvisible() ? "\<c-y>" : matchstr(getline(line('.')-1), '\%' . virtcol('.') . 'v\%(\k\+\\|.\)')
inoremap <expr> <c-e> pumvisible() ? "\<c-e>" : 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
+