Add new plugins to vimrc
This commit is contained in:
parent
30d6dd54b4
commit
da39fa5322
@ -72,6 +72,7 @@ H = :toggle-headers<Enter>
|
|||||||
J = :next<Enter>
|
J = :next<Enter>
|
||||||
K = :prev<Enter>
|
K = :prev<Enter>
|
||||||
h = :close<Enter>
|
h = :close<Enter>
|
||||||
|
o = :open
|
||||||
|
|
||||||
[compose]
|
[compose]
|
||||||
# Keybindings used when the embedded terminal is not selected in the compose
|
# Keybindings used when the embedded terminal is not selected in the compose
|
||||||
|
@ -54,6 +54,16 @@ alias disable-alarm=". /home/tyler/.desktop/alarm/disable-alarm.sh"
|
|||||||
alias memes-down="rsync -azPv tyler@174.104.135.12:/media/hd/memes/ /media/hd/memes"
|
alias memes-down="rsync -azPv tyler@174.104.135.12:/media/hd/memes/ /media/hd/memes"
|
||||||
alias memes-up="rsync -azPv /media/hd/memes/ tyler@174.104.135.12:/media/hd/memes/"
|
alias memes-up="rsync -azPv /media/hd/memes/ tyler@174.104.135.12:/media/hd/memes/"
|
||||||
|
|
||||||
|
#vim opens vim wiki by default, else the file
|
||||||
|
function vimw(){
|
||||||
|
if [ $# -eq 0 ]; then
|
||||||
|
vim ~/vimwiki/splash.wiki
|
||||||
|
else
|
||||||
|
vim $@
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
alias vim="vimw"
|
||||||
|
|
||||||
|
|
||||||
#display colors
|
#display colors
|
||||||
_PROMPT_GREEN_='\033[1;32m'
|
_PROMPT_GREEN_='\033[1;32m'
|
||||||
|
@ -24,6 +24,8 @@ Plugin 'luochen1990/rainbow'
|
|||||||
Plugin 'jiangmiao/auto-pairs'
|
Plugin 'jiangmiao/auto-pairs'
|
||||||
Plugin 'jamessan/vim-gnupg'
|
Plugin 'jamessan/vim-gnupg'
|
||||||
Plugin 'vim-syntastic/syntastic'
|
Plugin 'vim-syntastic/syntastic'
|
||||||
|
Plugin 'airblade/vim-gitgutter'
|
||||||
|
Plugin 'vimwiki/vimwiki'
|
||||||
|
|
||||||
"Appearence
|
"Appearence
|
||||||
Plugin 'ap/vim-css-color'
|
Plugin 'ap/vim-css-color'
|
||||||
@ -53,6 +55,8 @@ set statusline+=%#warningmsg#
|
|||||||
set statusline+=%{SyntasticStatuslineFlag()}
|
set statusline+=%{SyntasticStatuslineFlag()}
|
||||||
set statusline+=%*
|
set statusline+=%*
|
||||||
highlight SyntasticError guibg=#2f0000
|
highlight SyntasticError guibg=#2f0000
|
||||||
|
highlight link SyntasticErrorLine error
|
||||||
|
highlight link SyntasticWarningLine todo
|
||||||
|
|
||||||
let g:syntastic_always_populate_loc_list = 1
|
let g:syntastic_always_populate_loc_list = 1
|
||||||
"let g:syntastic_auto_loc_list = 1
|
"let g:syntastic_auto_loc_list = 1
|
||||||
@ -60,7 +64,16 @@ let g:syntastic_check_on_open = 1
|
|||||||
let g:syntastic_check_on_wq = 0
|
let g:syntastic_check_on_wq = 0
|
||||||
let g:syntastic_cpp_remove_include_errors = 1
|
let g:syntastic_cpp_remove_include_errors = 1
|
||||||
let g:syntastic_c_remove_include_errors = 1
|
let g:syntastic_c_remove_include_errors = 1
|
||||||
|
let g:syntastic_cpp_compiler = "g++"
|
||||||
|
let g:syntastic_cpp_compiler_options = "-Wall -Wextra"
|
||||||
|
|
||||||
|
let g:GPGFilePattern = '*.\(gpg\|asc\|pgp\|gpg\)\(.wiki\)\='
|
||||||
|
|
||||||
|
"clear sign column
|
||||||
|
hi clear SignColumn
|
||||||
|
|
||||||
|
"enable man pages in vim, active with :Man
|
||||||
|
runtime ftplugin/man.vim
|
||||||
|
|
||||||
"dont show the mode
|
"dont show the mode
|
||||||
set noshowmode
|
set noshowmode
|
||||||
@ -153,5 +166,6 @@ function! Compile()
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
noremap <leader>p :call Preview()<CR><CR><CR>
|
noremap <leader>p :call Preview()<CR><CR><CR>
|
||||||
noremap <leader>q :call Compile()<CR><CR>
|
noremap <leader>q :call Compile()<CR><CR>
|
||||||
|
Reference in New Issue
Block a user