Compare commits
4 Commits
bf7c114395
...
neovim
| Author | SHA1 | Date | |
|---|---|---|---|
| cc39580382 | |||
| 523dd1ad3a | |||
| 08d59860f5 | |||
| 0eea46beae |
2
after/ftplugin/vim.vim
Normal file
2
after/ftplugin/vim.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
let g:ale_linters = {'vim':['vint']}
|
||||
|
||||
@@ -7,7 +7,7 @@ let g:echodoc#type = 'signature'
|
||||
"LanguageClient-neovim
|
||||
" Required for operations modifying multiple buffers like rename.
|
||||
set hidden
|
||||
nnoremap <silent> lc LanguageClient_contextMenu()<CR>
|
||||
nnoremap <silent> lc :call LanguageClient_contextMenu()<CR>
|
||||
" Or map each action separately
|
||||
nnoremap <silent> K :call LanguageClient#textDocument_hover()<CR>
|
||||
nnoremap <silent> gd :call LanguageClient#textDocument_definition()<CR>
|
||||
@@ -178,3 +178,23 @@ endfunction
|
||||
command! -nargs=* Rag
|
||||
\ call fzf#vim#ag(<q-args>, WithGitRoot())
|
||||
|
||||
|
||||
" fastfold
|
||||
nmap zuz <Plug>(FastFoldUpdate)
|
||||
let g:fastfold_savehook = 1
|
||||
let g:fastfold_fold_command_suffixes = ['x','X','a','A','o','O','c','C']
|
||||
let g:fastfold_fold_movement_commands = [']z', '[z', 'zj', 'zk']
|
||||
|
||||
let g:markdown_folding = 1
|
||||
let g:tex_fold_enabled = 1
|
||||
let g:vimsyn_folding = 'af'
|
||||
let g:xml_syntax_folding = 1
|
||||
let g:html_syntax_folding = 1
|
||||
let g:javaScript_fold = 1
|
||||
let g:sh_fold_enabled= 7
|
||||
let g:ruby_fold = 1
|
||||
let g:perl_fold = 1
|
||||
let g:perl_fold_blocks = 1
|
||||
let g:r_syntax_folding = 1
|
||||
let g:rust_fold = 1
|
||||
let g:haskell_fold = 1
|
||||
|
||||
39
vimrc
39
vimrc
@@ -43,6 +43,7 @@ Plug 'vimwiki/vimwiki'
|
||||
Plug 'vmchale/dhall-vim'
|
||||
Plug 'Shougo/echodoc.vim'
|
||||
Plug 'tpope/vim-scriptease'
|
||||
Plug 'Konfekt/FastFold'
|
||||
|
||||
|
||||
" scm
|
||||
@@ -84,7 +85,7 @@ Plug 'autozimu/LanguageClient-neovim', {
|
||||
" linting/compilation
|
||||
Plug 'w0rp/ale', {
|
||||
\ 'do': 'bash -c \"cp -R ~/.vim/ale_linters .\"',
|
||||
\ 'for': 'sh',
|
||||
\ 'for': ['sh', 'vim'],
|
||||
\ }
|
||||
|
||||
" haskell
|
||||
@@ -147,7 +148,7 @@ Plug 'Quramy/tsuquyomi', { 'for': 'typescript' }
|
||||
Plug 'altercation/vim-colors-solarized'
|
||||
" Plug 'reedes/vim-colors-pencil'
|
||||
" Plug 'whatyouhide/vim-gotham'
|
||||
if has("nvim")
|
||||
if has('nvim')
|
||||
Plug 'iCyMind/NeoSolarized'
|
||||
endif
|
||||
" Plug 'noahfrederick/vim-hemisu'
|
||||
@@ -161,7 +162,7 @@ Plug '~/.vim/unmanaged-vim-plug/L9'
|
||||
Plug '~/.vim/unmanaged-vim-plug/log'
|
||||
Plug '~/.vim/unmanaged-vim-plug/ScrollColor'
|
||||
Plug '~/.vim/unmanaged-vim-plug/txtfmt'
|
||||
if !has("nvim")
|
||||
if !has('nvim')
|
||||
Plug '~/.vim/unmanaged-vim-plug/fontzoom'
|
||||
endif
|
||||
|
||||
@@ -213,7 +214,7 @@ set directory=~/.vimtmp
|
||||
set modeline
|
||||
set modelines=1
|
||||
|
||||
let g:nickID = "hasufell"
|
||||
let g:nickID = 'hasufell'
|
||||
|
||||
" don't yank to buffer on deletion
|
||||
" vnoremap d "_d
|
||||
@@ -246,10 +247,10 @@ else
|
||||
colorscheme solarized
|
||||
endif
|
||||
|
||||
if has("nvim")
|
||||
if has('nvim')
|
||||
if exists('g:GtkGuiLoaded')
|
||||
let g:neosolarized_contrast = "normal"
|
||||
let g:neosolarized_visibility = "normal"
|
||||
let g:neosolarized_contrast = 'normal'
|
||||
let g:neosolarized_visibility = 'normal'
|
||||
let g:neosolarized_vertSplitBgTrans = 0
|
||||
let g:neosolarized_bold = 1
|
||||
let g:neosolarized_underline = 1
|
||||
@@ -257,8 +258,8 @@ if has("nvim")
|
||||
set background=dark
|
||||
colorscheme NeoSolarized
|
||||
else
|
||||
let g:neosolarized_contrast = "normal"
|
||||
let g:neosolarized_visibility = "normal"
|
||||
let g:neosolarized_contrast = 'normal'
|
||||
let g:neosolarized_visibility = 'normal'
|
||||
let g:neosolarized_vertSplitBgTrans = 0
|
||||
let g:neosolarized_bold = 1
|
||||
let g:neosolarized_underline = 1
|
||||
@@ -278,7 +279,7 @@ fu! DisableBr()
|
||||
set nolist " list disables linebreak
|
||||
set textwidth=0
|
||||
set wrapmargin=0
|
||||
set fo-=t
|
||||
set formatoptions-=t
|
||||
endfu
|
||||
|
||||
" Disable line breaks for all file types
|
||||
@@ -287,15 +288,15 @@ au BufNewFile,BufRead *.* call DisableBr()
|
||||
|
||||
" ==========copy/paste===========
|
||||
function! Paste(mode)
|
||||
if a:mode == "v"
|
||||
if a:mode == 'v'
|
||||
normal gv
|
||||
normal "_d
|
||||
normal "+gP
|
||||
normal l
|
||||
elseif a:mode == "i"
|
||||
elseif a:mode == 'i'
|
||||
set virtualedit=all
|
||||
normal `^"+gP
|
||||
let &virtualedit = ""
|
||||
let &virtualedit = ''
|
||||
endif
|
||||
endfunction
|
||||
|
||||
@@ -304,7 +305,7 @@ endfunction
|
||||
function! Select()
|
||||
set virtualedit=all
|
||||
normal `^ggVG
|
||||
let &virtualedit = ""
|
||||
let &virtualedit = ''
|
||||
endfunction
|
||||
" =======================
|
||||
|
||||
@@ -353,7 +354,7 @@ endfun
|
||||
|
||||
" comment hiding
|
||||
func! IsComment( lnum )
|
||||
return synIDattr(synID(a:lnum, match(getline(a:lnum),'\S')+1, 1),"name") =~? 'comment'
|
||||
return synIDattr(synID(a:lnum, match(getline(a:lnum),'\S')+1, 1),'name') =~? 'comment'
|
||||
endfun
|
||||
|
||||
|
||||
@@ -394,13 +395,13 @@ endfunction
|
||||
" vim macro to jump to devhelp topics.
|
||||
""""""""""""""""""""""""""""""
|
||||
function! DevHelpCurrentWord()
|
||||
let word = expand("<cword>")
|
||||
exe "!devhelp -s " . word . " &"
|
||||
let word = expand('<cword>')
|
||||
exe '!devhelp -s ' . word . ' &'
|
||||
endfunction
|
||||
|
||||
function! ManCurrentWord()
|
||||
let word = expand("<cword>")
|
||||
exe "!man 3 " . word
|
||||
let word = expand('<cword>')
|
||||
exe '!man 3 ' . word
|
||||
endfunction
|
||||
|
||||
" vim:foldmethod=marker:foldlevel=0
|
||||
|
||||
Reference in New Issue
Block a user