added some vim plugins
This commit is contained in:
parent
0e808b49df
commit
2dc86f711e
|
@ -10,3 +10,12 @@
|
|||
[submodule "vim/.vim/pack/default/start/ale"]
|
||||
path = vim/.vim/pack/default/start/ale
|
||||
url = https://github.com/dense-analysis/ale.git
|
||||
[submodule "vim/.vim/pack/default/start/tagbar"]
|
||||
path = vim/.vim/pack/default/start/tagbar
|
||||
url = https://github.com/preservim/tagbar.git
|
||||
[submodule "vim/.vim/pack/default/start/vim-commentary"]
|
||||
path = vim/.vim/pack/default/start/vim-commentary
|
||||
url = https://github.com/tpope/vim-commentary.git
|
||||
[submodule "vim/.vim/pack/default/start/vim-surround"]
|
||||
path = vim/.vim/pack/default/start/vim-surround
|
||||
url = https://github.com/tpope/vim-surround.git
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
let g:netrw_dirhistmax =10
|
||||
let g:netrw_dirhistcnt =8
|
||||
let g:netrw_dirhist_8='/home/stefan/Documents/husk/templates/status_code'
|
||||
let g:netrw_dirhist_7='/home/stefan'
|
||||
let g:netrw_dirhist_6='/etc/NetworkManager/conf.d'
|
||||
let g:netrw_dirhist_5='/etc/NetworkManager'
|
||||
let g:netrw_dirhist_4='/etc'
|
||||
let g:netrw_dirhist_3='/etc/netctl'
|
||||
let g:netrw_dirhist_2='/etc/netctl/interfaces'
|
||||
let g:netrw_dirhist_1='/home/stefan/Documents'
|
|
@ -1,3 +1,7 @@
|
|||
" Press F9 to run the script
|
||||
autocmd FileType python map <buffer> <F9> :w<CR>:exec '!python3' shellescape(@%, 1)<CR>
|
||||
autocmd FileType python imap <buffer> <F9> <esc>:w<CR>:exec '!python3' shellescape(@%, 1)<CR>
|
||||
|
||||
set tabstop=4 shiftwidth=4 autoindent smartindent expandtab
|
||||
setlocal colorcolumn=80
|
||||
|
||||
|
@ -29,3 +33,4 @@ function! PyInclude(fname)
|
|||
endfunction
|
||||
setlocal includeexpr=PyInclude(v:fname)
|
||||
setlocal define=^\\s*\\<\\(def\\\|class\\)\\>
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit be563539754b7af22bbe842ef217d4463f73468c
|
|
@ -0,0 +1 @@
|
|||
Subproject commit e87cd90dc09c2a203e13af9704bd0ef79303d755
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 3d188ed2113431cf8dac77be61b842acb64433d9
|
22
vim/.vimrc
22
vim/.vimrc
|
@ -17,9 +17,9 @@ let $RTP=split(&runtimepath, ',')[0]
|
|||
let $RC="$HOME/.vimrc"
|
||||
|
||||
" Move Swap,Backup and undo files into .vim directory
|
||||
set directory^="$HOME/.vim/.swap//"
|
||||
set backupdir^="$HOME/.vim/.backup//"
|
||||
set undodir^="$HOME/.vim/.undo//"
|
||||
set directory^=$HOME/.vim/.swap//
|
||||
set backupdir^=$HOME/.vim/.backup//
|
||||
set undodir^=$HOME/.vim/.undo//
|
||||
|
||||
" Split to the right and below
|
||||
set splitbelow
|
||||
|
@ -43,10 +43,9 @@ command! MakeTags !ctags -R .
|
|||
set autochdir
|
||||
set tags=tags;
|
||||
|
||||
" Linter
|
||||
" autocmd FileType python setlocal makeprg=pylint\ --output-format=parseable
|
||||
" autocmd BufWritePost *.py silent make! <afile> | silent redraw!
|
||||
" autocmd QuickFixCmdPost [^l]* cwindow
|
||||
" Press F9 to run Python script
|
||||
autocmd FileType python map <buffer> <F9> :w<CR>:exec '!python3' shellescape(@%, 1)<CR>
|
||||
autocmd FileType python imap <buffer> <F9> <esc>:w<CR>:exec '!python3' shellescape(@%, 1)<CR>
|
||||
|
||||
" File browsing
|
||||
let g:netrw_banner=0
|
||||
|
@ -89,7 +88,7 @@ set laststatus=2
|
|||
set statusline=
|
||||
set statusline+=%#PmenuSel#
|
||||
" set statusline+=%{StatuslineGit()}
|
||||
set statusline+=%{b:branchstatus}
|
||||
" set statusline+=%{b:branchstatus}
|
||||
set statusline+=%#BufTabLineCurrent#
|
||||
set statusline+=\ %M
|
||||
set statusline+=\ %r
|
||||
|
@ -103,7 +102,7 @@ set statusline+=\ %c:%l/%L
|
|||
set statusline+=\ %p%%
|
||||
set statusline+=\ [%n]
|
||||
|
||||
packadd! indentLine
|
||||
"packadd! indentLine
|
||||
"let g: indentLine_char = '⦙'
|
||||
|
||||
" let g:vimspector_enable_mappings = 'HUMAN'
|
||||
|
@ -115,7 +114,10 @@ set bg=dark
|
|||
|
||||
packadd! vim-log-highlighting
|
||||
|
||||
packadd! ale
|
||||
" tagbar, press F8
|
||||
nmap <F8> :TagbarToggle<CR>
|
||||
|
||||
" packadd! ale
|
||||
packloadall
|
||||
" Load all of the helptags now, after plugins have been loaded.
|
||||
" All messages and errors will be ignored.
|
||||
|
|
Loading…
Reference in New Issue