Remove absolete vim plugins
This commit is contained in:
parent
c56a524693
commit
c3a9ae89a0
1 changed files with 41 additions and 25 deletions
66
vim/.vimrc
66
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=<F2>
|
||||
:map <F5> :e <CR>
|
||||
|
||||
"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 <C-e> :NERDTreeToggle<CR>
|
||||
"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=<F2>
|
||||
|
||||
"Reload file
|
||||
map <F5> :e <CR>
|
||||
|
||||
"Open netrw browser
|
||||
map <silent> <C-E> :call ToggleVExplorer()<CR>
|
||||
|
||||
"Open quickfix window
|
||||
map <F3> :copen <CR>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue