diff options
author | shmibs <shmibs@gmail.com> | 2014-03-04 22:03:13 -0700 |
---|---|---|
committer | shmibs <shmibs@gmail.com> | 2014-03-04 22:03:13 -0700 |
commit | 1356808cc6f5a749d0d8d6e46fb417f09b9c2f5a (patch) | |
tree | e3090f1ecf209627ec49c52b48e0525c22a4f594 /.vimrc | |
parent | e31de6c4cff8a6dc20a23dfc660da8a0d8127fa4 (diff) | |
download | dotfiles-1356808cc6f5a749d0d8d6e46fb417f09b9c2f5a.tar.gz |
added dmenu-based switcher
also started using mpv
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 + |