Browse files

Setting fold mode to indent since it's faster, and adding f2 map for …

…pasting better
  • Loading branch information...
1 parent 78e8a7c commit 87b5a7550a7a7c5e194448251d4b0cbd2c94c540 @ksykulev committed Mar 7, 2013
Showing with 7 additions and 1 deletion.
  1. +7 −1 vimrc
View
8 vimrc
@@ -65,7 +65,7 @@ set incsearch " Highlight Incremental searching
set nowrap " No wrap duh!
" Folding settings
-set foldmethod=syntax "fold based on indent
+set foldmethod=indent "fold based on indent
set foldnestmax=10 "deepest fold is 10 levels
set nofoldenable "dont fold by default
set foldlevel=1
@@ -110,3 +110,9 @@ let g:ctrlp_custom_ignore = { 'dir': '\v[\/]\.(git|hg|svn)$', 'file': '\v\.(exe|
" Handles reselection of visual indent/outdent
vmap > >gv
vmap < <gv
+
+" Because pasting from other applications into vim is stupid
+nnoremap <F2> :set invpaste paste?<CR>
+set pastetoggle=<F2>
+set showmode
+filetype indent off

0 comments on commit 87b5a75

Please sign in to comment.