summaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc21
1 files changed, 8 insertions, 13 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 6b64279..01156b5 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -13,10 +13,8 @@ set directory=$XDG_STATE_HOME/vim/swap | call mkdir(&directory, 'p')
set undodir=$XDG_STATE_HOME/vim/undo | call mkdir(&undodir, 'p')
set viewdir=$XDG_STATE_HOME/vim/view | call mkdir(&viewdir, 'p')
-if !has('nvim') | set viminfofile=$XDG_STATE_HOME/vim/viminfo | endif
-
" vimplugs {{{
-call plug#begin('~/.config/nvim/plugged')
+call plug#begin('~/.config/vim/plugged')
" colorschemes {{{
Plug 'tomasiser/vim-code-dark' " codedark color scheme
Plug 'flazz/vim-colorschemes' " meta-color scheme package
@@ -52,9 +50,9 @@ Plug 'ryanoasis/vim-devicons' " dev icons for nerdtree
call plug#end()
" }}}
-" nvim options {{{
+" vim options {{{
-"" nvimrc:
+"" vimrc:
"" General
set showmatch " Highlight matching brace
@@ -62,7 +60,7 @@ set showmatch " Highlight matching brace
set number
set relativenumber
-colorscheme 256-grayvim
+colorscheme Dark2
set hlsearch " Highlight all search results
set smartcase " Enable smart-case search
@@ -80,9 +78,6 @@ set undolevels=1000 " Number of undo levels
set backspace=indent,eol,start " Backspace behaviour
filetype plugin indent on
-"" GUI Config
-set guifont=mononoki\ Nerd\ Font\ Mono:h12
-
"hi Normal guibg=NONE ctermbg=NONE
"hi NonText guibg=NONE ctermbg=NONE
"set background=dark
@@ -207,7 +202,7 @@ autocmd BufWinEnter * if getcmdwintype() == '' | silent NERDTreeMirror | endif
" custom augroup {{{
augroup custom
autocmd!
- au BufEnter *.tex :LLPStartPreview
+ "au BufEnter *.tex :LLPStartPreview
au BufEnter *.md :set textwidth=80
au BufEnter *.ms :set textwidth=80
"au BufEnter *.c :colo DevC++
@@ -217,7 +212,7 @@ augroup custom
"au BufEnter *.cpp :colo DevC++
"au BufEnter *.hpp :colo DevC++
au BufWritePost init.vim :source %
- au BufWritePost *.tex :make
+ "au BufWritePost *.tex :make
au BufWritePost *sxhkdrc* :!pkill -USR1 -x sxhkd
au BufWritePost .Xresources :!xrdb ~/.Xresources
au BufWritePost .gitignore :!git add .gitignore
@@ -260,7 +255,7 @@ nnoremap <leader>wk :resize +1<CR>
nnoremap <leader>wl :vertical resize +1<CR>
" config
-nnoremap <leader>en :e ~/.config/nvim/init.vim<CR>
+nnoremap <leader>en :e ~/.config/vim/vimrc<CR>
nnoremap <leader>ec :source %<CR>
" write as root
@@ -303,4 +298,4 @@ nnoremap <leader>pc :PlugClean<CR>
nnoremap <leader>gp :G pull<CR>
nnoremap <leader>gd :G diff %<CR>
-" }}}
+" }}