···
" Turn on syntax highlighting
+
" Use Dark Solarized theme
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let g:airline_powerline_fonts = 1
+
" Show branch in Airline status bar
let g:airline#extensions#branch#enabled = 1
+
let g:airline#extensions#branch#empty_message = '×'
let g:airline#extensions#syntastic#enabled = 1
let g:airline#extensions#tagbar#enabled = 1
" Set utf8 as standard encoding and en_US as the standard language
···
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let g:indent_guides_start_level = 2
+
let g:indent_guides_guide_size = 2
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Files, backups and undo
···
" Display tabs and trailing spaces visually
set list listchars=tab:→\ ,trail:·
+
set nowrap " Don't wrap lines
+
set linebreak " Wrap lines at convenient points
+
set foldnestmax=3 " Deepest fold is 3 levels
+
set nofoldenable " Don't fold by default
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
···
map <silent> <C-\> :TmuxNavigatePrevious<CR>
" Ctrl-F12 to generate ctags for current file
+
map <silent> <F12> :!ctags . -f .tags --append=yes --recurse=yes<CR>
+
" Align by given separator (available '=',':' and ',')
nmap <Leader>a= :Tabularize /=<CR>
vmap <Leader>a= :Tabularize /=<CR>
nmap <Leader>a: :Tabularize /:\zs<CR>
···
nmap <Leader>a, :Tabularize /,\zs<CR>
vmap <Leader>a, :Tabularize /,\zs<CR>
+
" Copy and paste to unnamed register (system register)
+
" Some useful toggles for plugins
noremap <F2> :GundoToggle<CR>
noremap <F3> :NumbersToggle<CR>
noremap <F4> :IndentGuidesToggle<CR>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
···
let g:SuperTabDefaultCompletionType = "context"
let g:SuperTabDefaultCompletionType = "<c-n>"
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let g:tagbar_userarrows = 1
+
nnoremap <F9> :TagbarToggle<CR>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
···
let g:syntastic_error_symbol = '✗✗'
let g:syntastic_style_error_symbol = '✠✠'
let g:syntastic_warning_symbol = '∆∆'
let g:syntastic_style_warning_symbol = '≈≈'
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
···
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+
" Remove all trailing whitespaces
command! Clean %s/\s\+$//e | nohlsearch
command! W w !sudo tee % > /dev/null