set number " Folding augroup vimrc au BufReadPre * setlocal foldmethod=indent au BufWinEnter * if &fdm == 'indent' | setlocal foldmethod=manual | endif augroup END " Fix for either airline or " powerline uis set encoding=utf-8 " set smartindent set tabstop=2 set shiftwidth=2 set expandtab " VIM AIRLINE let g:airline_powerline_fonts = 1 let g:airline#extensions#tabline#enabled = 1 set guifont=DejaVu\ Sans\ Mono\ for\ Powerline:h10 let g:airline_left_sep = '' " enable modified detection let g:airline_detect_modified=1 let g:airline_left_alt_sep = '' let g:airline_right_alt_sep = '' let g:airline_readonly_symbol = '' let g:airline_linecolumn_prefix = ' ' " set guifont=Inconsolata\ for\ Powerline:h11 if has('gui_running') set background=light else set background=dark colorscheme ir_black endif syntax enable " set background=light colorscheme solarized let g:UltiSnipsSnippetDirectories= ["UltiSnips"] let g:UltiSnipsExpandTrigger = '' let g:user_emmet_leader_key='' let g:used_javascript_libs = 'angularjs' let loaded_matchit = 1 " remove F1 default help inoremap nnoremap vnoremap " C-q to escape from all modes " vimbits inoremap noremap vnoremap cmap " select all map a ggVG " insert space before and after " while and without leaving normal mode nmap t ok nmap T Oj " move cursor while in insert mode imap h imap j imap k imap l " move through tabs with: map :tabnext map :tabprevious " remap U to for easier redo nnoremap U " resize splits with arrow keys noremap + noremap - noremap > noremap < " disable help when pressing f1 map imap