From c3a9ae89a0bf9c14093fa8150f885d15147f4883 Mon Sep 17 00:00:00 2001 From: Sonny Date: Tue, 15 Aug 2017 12:11:30 +0200 Subject: [PATCH] Remove absolete vim plugins --- vim/.vimrc | 66 +++++++++++++++++++++++++++++++++--------------------- 1 file changed, 41 insertions(+), 25 deletions(-) diff --git a/vim/.vimrc b/vim/.vimrc index 393e096..5593412 100755 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -1,11 +1,4 @@ -call plug#begin('~/.vim/plugged') - -Plug 'https://github.com/scrooloose/nerdtree.git' -Plug 'https://github.com/powerline/fonts' -Plug 'https://github.com/tpope/vim-fugitive' -Plug 'https://github.com/ervandew/supertab' - -"Indent automiatically depending on filetype +"Indent depending on filetype filetype plugin on set autoindent filetype indent on @@ -16,24 +9,16 @@ set encoding=utf-8 "Set syntax on syntax enable -" Create the `tags` file (may need to install ctags first) -" for autocompletion -command! MakeTags !ctags -R . - "4 spaces instead of tabs -set tabstop=4 softtabstop=4 shiftwidth=4 expandtab +set tabstop=4 shiftwidth=4 softtabstop=4 expandtab " Fold methods based on indents " zo to open folds, zc to close set foldmethod=indent set foldlevel=99 -" FINDING FILES - " Search down into subfolders " Provides tab-completion for all file-related tasks -" " - Hit tab to :find by partial match -" - Use * to make it fuzzy set path+=** " Display all matching files when we tab complete @@ -75,10 +60,6 @@ set noswapfile "Wrap text instead of being on one line set lbr -"Paste mode toggle -set pastetoggle= -:map :e - "Default Colors for CursorLine set cursorline @@ -97,9 +78,44 @@ autocmd BufWritePre * :%s/\s\+$//e au BufWinLeave * mkview au BufWinEnter * silent loadview -" Plugins +"Use pylint for python files (:make % for current file, :make * for all +"files in current directory +autocmd FileType python compiler pylint -" Nerdtree -map :NERDTreeToggle +"Netrw options +function! ToggleVExplorer() + if exists("t:expl_buf_num") + let expl_win_num = bufwinnr(t:expl_buf_num) + if expl_win_num != -1 + let cur_win_nr = winnr() + exec expl_win_num . 'wincmd w' + close + exec cur_win_nr . 'wincmd w' + unlet t:expl_buf_num + else + unlet t:expl_buf_num + endif + else + exec '1wincmd w' + Vexplore + let t:expl_buf_num = bufnr("%") + endif +endfunction -call plug#end() +let g:netrw_banner = 0 +let g:netrw_winsize = -30 +let g:netrw_browse_split = 4 +let g:netrw_liststyle = 3 + +" ------------ Keybindings ---------------- +"Paste mode toggle +set pastetoggle= + +"Reload file +map :e + +"Open netrw browser +map :call ToggleVExplorer() + +"Open quickfix window +map :copen