[submodule "pack/async/start/gen_tags.vim"]
path = pack/async/opt/gen_tags.vim
url = https://github.com/jsfaint/gen_tags.vim.git
-[submodule "pack/markdown/opt/previm"]
- path = pack/markdown/start/previm
- url = https://github.com/previm/previm.git
[submodule "pack/markdown/start/open-browser.vim"]
path = pack/markdown/start/open-browser.vim
url = https://github.com/tyru/open-browser.vim.git
-;" Use :help 'option' to see the documentation for the given option.
+" Use :help 'option' to see the documentation for the given option.
set nocompatible
filetype plugin indent on
syntax on
set fileignorecase
" colors
-set t_Co=256
set background=dark
+set t_Co=256
set cursorline
set cursorcolumn
+highlight Cursorline cterm=NONE ctermbg=darkgrey
+highlight Cursorcolumn ctermbg=darkgrey
highlight linenr ctermfg=grey
+highlight! link folded normal
highlight BadWhitespace ctermfg=red
match BadWhitespace /\s\+$/
-"highlight Cursorline cterm=NONE ctermbg=darkgrey
-"highlight Cursorcolumn ctermbg=darkgrey
-highlight Cursorline ctermfg=NONE ctermbg=darkgrey
-highlight Cursorcolumn ctermbg=darkgrey
-highligh! link folded normal
" fonts and chars
set list
" Functions
-" grep
-" file:line:coloumn:message
+" grep file:line:coloumn:message
set grepformat^=%f:%l:%c:%m
set grepprg=ag\ --vimgrep\ --skip-vcs-ignores\ --path-to-ignore\ ~/.ignore\ --cpp\ --cc
command! -nargs=1 Ngrep lvimgrep "<args>" $HOME/cloud/Notes/**/*.md
" Autocommands
if has('autocmd')
- augroup tabstospaces
+ augroup filetypes
+ autocmd!
+ autocmd BufNewFile,BufRead *.{md,mdwn,mkd,mkdn,mark*} set filetype=markdown
+ autocmd BufNewfile,BufRead *.gradle set filetype=groovy
+ autocmd BufNewfile,BufRead *.json set filetype=json
+ autocmd BufNewfile,BufRead *.yml set filetype=yaml
+ augroup end
+
+ augroup formats
autocmd!
autocmd FileType c setlocal expandtab softtabstop=2 shiftwidth=2
autocmd FileType cpp setlocal expandtab softtabstop=2 shiftwidth=2
autocmd FileType netrw setlocal bufhidden=wipe
augroup end
- augroup filetypes
- autocmd!
- autocmd BufNewFile,BufRead *.{md,mdwn,mkd,mkdn,mark*} set filetype=markdown
- autocmd BufNewfile,BufRead *.gradle set filetype=groovy
- autocmd BufNewfile,BufRead *.json set filetype=json
- autocmd BufNewfile,BufRead *.yml set filetype=yaml
- augroup end
-
augroup saveall
autocmd!
autocmd FocusLost * silent! wa
augroup end
augroup quickfix
+ autocmd!
" autocmd QuickFixCmdPost [^l]* nested cwindow
" autocmd QuickFixCmdPost l* nested lwindow
autocmd QuickFixCmdPost * call asyncrun#quickfix_toggle(8, 1)
nnoremap <silent><Leader>pt :call PickTag()<CR>
let g:pick_height = 10
-
" deoplete
set pyx=3
set pyxversion=3