aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vimrc.dot.link22
1 files changed, 15 insertions, 7 deletions
diff --git a/vimrc.dot.link b/vimrc.dot.link
index 65c0c03..a7e739f 100644
--- a/vimrc.dot.link
+++ b/vimrc.dot.link
@@ -1,6 +1,6 @@
" VIM configuration
-" Basic options
+" Basic options {{{
syn on
set nu
set background=dark
@@ -22,19 +22,23 @@ set smartcase
set timeoutlen=1000
"let mapleader="-"
let mapleader=" "
+" }}}
-" Syntax highlighting
-syntax on
+" Filetype and syntax handling {{{
" Filetype handling
filetype plugin indent on
+" Syntax highlighting
+syntax on
+
" Syntax check
let g:syntastic_mode_map={ 'mode': 'passive',
\ 'active_filetypes': [],
\ 'passive_filetypes': [] }
+" }}}
-" Folding
+" Folding {{{
" Disabled due to slowness
"set foldmethod=syntax
"set foldlevelstart=99
@@ -47,22 +51,25 @@ let g:syntastic_mode_map={ 'mode': 'passive',
"let sh_fold_enabled=1
"let vimsyn_folding='af'
"let xml_syntax_folding=1
+" }}}
-" Command mode completion
+" Command mode completion {{{
" See https://stackoverflow.com/questions/526858/how-do-i-make-vim-do-normal-bash-like-tab-completion-for-file-names
"set wildmode=longest,list
set wildmode=longest,list,full
set wildmenu
+" }}}
-" Disable modelines
+" Disable modelines {{{
"
" https://lwn.net/Articles/20249/
" http://usevim.com/2012/03/28/modelines/
" http://www.techrepublic.com/blog/it-security/turn-off-modeline-support-in-vim/
set nomodeline
set modelines=0
+}}}
-" Session management
+" Session management {{{
"
" http://usevim.com/2013/07/05/sessions/
" https://github.com/xolox/vim-session
@@ -81,3 +88,4 @@ let g:session_autosave_silent=1
let g:session_autosave='yes'
let g:session_autoload='no'
let g:session_directory='~/.local/share/vim/sessions'
+" }}}