diff --git a/vimrc b/vimrc index 2729a05..3864ff4 100644 --- a/vimrc +++ b/vimrc @@ -3,7 +3,7 @@ filetype off " required set ttyfast " set the runtime path to include Vundle and initialize -set rtp+=~/.vim/bundle/Vundle.vim +set runtimepath+=~/.vim/bundle/Vundle.vim call vundle#begin() " alternatively, pass a path where Vundle should install plugins "call vundle#begin('~/some/path/here') @@ -114,7 +114,7 @@ set wildmode=longest:full,full " allow hidden buffers set hidden -set bg=dark +set background=dark " set number set number relativenumber set hlsearch " highlight searches @@ -126,7 +126,7 @@ set foldcolumn=2 " key mappings let g:mapleader = "\" -" jk acts as escape in insert,visual/select modes +" jk acts as escape in insert inoremap jk nnoremap co :!clear; @@ -279,7 +279,7 @@ set undofile " get name of syntax item function! SyntaxItem() - return synIDattr(synID(line("."),col("."),1),"name") . " -> " . synIDattr(synIDtrans(synID(line("."),col("."),1)), "name" ) + return synIDattr(synID(line('.'),col('.'),1),'name') . ' -> ' . synIDattr(synIDtrans(synID(line('.'),col('.'),1)), 'name' ) endfunction nnoremap p :echom SyntaxItem() @@ -292,9 +292,9 @@ let g:user_emmet_leader_key='' " taboo.vim set sessionoptions+=tabpages,globals -let g:taboo_tab_format = " %f%m " -let g:taboo_renamed_tab_format = " %l%m " -let g:taboo_modified_tab_flag = "+" +let g:taboo_tab_format = ' %f%m ' +let g:taboo_renamed_tab_format = ' %l%m ' +let g:taboo_modified_tab_flag = '+' " vue-vim " disable preprocessor checking for vue files - increases speed @@ -320,6 +320,9 @@ set belloff+=ctrlg " If Vim beeps during completion " call add(g:mucomplete#chains['default'], 'ulti') " ALE +nnoremap ne :lnext +nnoremap pe :lprev + let g:ale_sign_error = '>>' let g:ale_sign_warning = '--' let g:ale_sign_column_always = 1 @@ -341,16 +344,16 @@ function! LinterStatus() abort let l:all_errors = l:counts.error + l:counts.style_error let l:all_non_errors = l:counts.total - l:all_errors - return l:counts.total == 0 ? 'OK' : printf('%dW %dE', all_non_errors, all_errors) + return l:counts.total == 0 ? 'OK' : printf('%dW %dE', l:all_non_errors, l:all_errors) endfunction "nmap (ale_previous_wrap) "nmap (ale_next_wrap) " ultisnips " Trigger configuration. Do not use if you use https://github.com/Valloric/YouCompleteMe. -let g:UltiSnipsExpandTrigger="" -let g:UltiSnipsJumpForwardTrigger="" -let g:UltiSnipsJumpBackwardTrigger="" +let g:UltiSnipsExpandTrigger='' +let g:UltiSnipsJumpForwardTrigger='' +let g:UltiSnipsJumpBackwardTrigger='' " NERDtree nnoremap :NERDTreeFocus @@ -394,8 +397,6 @@ call project_tags#add_language('.phptags', 'php') call project_tags#add_language('.csstags','css') call project_tags#add_language('.scsstags','scss') -" jsut some example text one two three four five Six "Seven" - let g:tagbar_type_css = { \ 'ctagstype' : 'css', \ 'kinds' : [ @@ -419,9 +420,9 @@ let g:tagbar_type_scss = { \ ] \} -if !exists("*RangerExplorer") +if !exists('*RangerExplorer') function RangerExplorer() - exec "silent !ranger --choosefile=/tmp/vim_ranger_current_file " . expand("%:p:h") + exec 'silent !ranger --choosefile=/tmp/vim_ranger_current_file ' . expand('%:p:h') if filereadable('/tmp/vim_ranger_current_file') exec 'edit ' . system('cat /tmp/vim_ranger_current_file') call system('rm /tmp/vim_ranger_current_file')