aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2016-07-09 21:36:02 +0200
committerDuncaen <mail@duncano.de>2016-07-09 21:36:02 +0200
commit31c5a47d571939c798c58d5df80ec950c1519786 (patch)
tree74c026cd117a191e69c7ef1bc905e1c2bd06fb93
parent41d30a34cb1c97fff431f532b03c32f234fe1ef6 (diff)
downloaddotfiles-31c5a47d571939c798c58d5df80ec950c1519786.tar.gz
vimrc: remove plugins i dont need
-rw-r--r--vimrc38
1 files changed, 18 insertions, 20 deletions
diff --git a/vimrc b/vimrc
index 9bd7b71..c73afb0 100644
--- a/vimrc
+++ b/vimrc
@@ -13,13 +13,9 @@ Plug 'airblade/vim-gitgutter'
Plug 'chriskempson/vim-tomorrow-theme'
" Navigation
-if hostname() != "pi"
-Plug 'bling/vim-airline'
-endif
Plug 'majutsushi/tagbar'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'bling/vim-bufferline'
-Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
" Editing
Plug 'tpope/vim-surround'
@@ -31,17 +27,11 @@ Plug 'nathanaelkane/vim-indent-guides'
" Languages
if hostname() != "pi"
" Plug 'SirVer/ultisnips'
-Plug 'marijnh/tern_for_vim', { 'do': 'npm install', 'for': 'javascript' }
Plug 'scrooloose/syntastic', { 'for': ['python', 'javascript'] }
Plug 'fatih/vim-go'
-" Plug 'klen/python-mode', { 'for': 'python' }
Plug 'python-rope/ropevim', { 'do': 'python2 setup.py install --user && python3 setup.py install --user' }
endif
-Plug 'plasticboy/vim-markdown'
-Plug 'moll/vim-node', { 'for': 'javascript' }
Plug 'Shougo/neocomplete.vim'
-" Plug 'honza/vim-snippets'
-Plug 'cakebaker/scss-syntax.vim', { 'for': 'scss' }
call plug#end()
endif
@@ -76,6 +66,22 @@ set incsearch " match search while typing
set hlsearch " hightligt search results
set smartcase " search casesensitive if pattern contains uppercase chars
+function! StatusGit()
+ if empty(get(b:, 'gitgutter_gitgutter_signs', {}))
+ return ''
+ endif
+ let symbols = ['+', '~', '-']
+ let hunks = GitGutterGetHunkSummary()
+ let ret = []
+ for i in [0, 1, 2]
+ call add(ret, symbols[i] . hunks[i])
+ endfor
+ return join(ret, ' ')
+endfunction
+
+set statusline=%{StatusGit()}\ %f\ %{&ff}\ %y
+set statusline+=%=%l/%L
+
" ignore
set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.db
@@ -235,14 +241,6 @@ nmap <silent> <F11> :TagbarToggle<CR>
nmap <leader>tt <F11>
" ============================================================================
-" NERDTree
-" <F10> - toggle nerdtree
-" ,e - toggle nerdtree
-" ============================================================================
-nmap <silent> <F10> :NERDTreeToggle<CR>
-nmap <leader>e <F10>
-
-" ============================================================================
" FILETYPES
" ============================================================================
@@ -256,8 +254,8 @@ autocmd BufNewFile,BufRead template set ft=sh sts=0 sw=0 noet
" too often i type W instead of w
command! W w
-" For when you forget to sudo.. Really Write the file.
-cmap w!! w !sudo tee % >/dev/null
+" For when you forget to doas.. Really Write the file.
+cmap w!! w !doas tee % >/dev/null
"to create a new line cmd mode without going to insert
nmap <leader>k O<ESC>k0