diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2020-01-21 11:23:42 -0700 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2020-01-21 11:23:42 -0700 |
commit | 1afc100fb8de25fd6ecf50e59e1ece8f447474b1 (patch) | |
tree | 69bb51cae7771800a41e889e417fa193a4dad4db | |
parent | b84cc4807fc4be558b219bc575d93473aab7fd66 (diff) | |
download | vim-1afc100fb8de25fd6ecf50e59e1ece8f447474b1.tar.gz vim-1afc100fb8de25fd6ecf50e59e1ece8f447474b1.tar.bz2 vim-1afc100fb8de25fd6ecf50e59e1ece8f447474b1.zip |
ycm initial commit
-rw-r--r-- | .gitmodules | 24 | ||||
m--------- | bundle/YouCompleteMe | 0 | ||||
m--------- | bundle/deoplete | 0 | ||||
m--------- | bundle/deoplete-clangx | 0 | ||||
m--------- | bundle/neco-ghc | 0 | ||||
m--------- | bundle/neoinclude | 0 | ||||
m--------- | bundle/nvim-yarp | 0 | ||||
m--------- | bundle/vim-hug-neovim-rpc | 0 | ||||
m--------- | bundle/vimproc | 0 | ||||
-rw-r--r-- | config/bindings.vim | 87 | ||||
-rw-r--r-- | config/deoplete.vim | 7 | ||||
-rw-r--r-- | vimrc | 2 |
12 files changed, 4 insertions, 116 deletions
diff --git a/.gitmodules b/.gitmodules index 8b6df92..8ec5da9 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,12 +1,6 @@ [submodule "bundle/unbundle"] path = bundle/unbundle url = https://github.com/sunaku/vim-unbundle.git -[submodule "bundle/neco-ghc"] - path = bundle/neco-ghc - url = https://github.com/eagletmt/neco-ghc -[submodule "bundle/vimproc"] - path = bundle/vimproc - url = https://github.com/Shougo/vimproc.vim [submodule "bundle/markdown"] path = bundle/markdown url = https://github.com/plasticboy/vim-markdown.git @@ -28,18 +22,6 @@ [submodule "bundle/clang-format"] path = bundle/clang-format url = https://github.com/rhysd/vim-clang-format.git -[submodule "bundle/deoplete"] - path = bundle/deoplete - url = https://github.com/Shougo/deoplete.nvim.git -[submodule "bundle/nvim-yarp"] - path = bundle/nvim-yarp - url = https://github.com/roxma/nvim-yarp.git -[submodule "bundle/vim-hug-neovim-rpc"] - path = bundle/vim-hug-neovim-rpc - url = https://github.com/roxma/vim-hug-neovim-rpc.git -[submodule "bundle/deoplete-clangx"] - path = bundle/deoplete-clangx - url = https://github.com/Shougo/deoplete-clangx.git -[submodule "bundle/neoinclude"] - path = bundle/neoinclude - url = https://github.com/Shougo/neoinclude.vim.git +[submodule "bundle/YouCompleteMe"] + path = bundle/YouCompleteMe + url = https://github.com/ycm-core/YouCompleteMe.git diff --git a/bundle/YouCompleteMe b/bundle/YouCompleteMe new file mode 160000 +Subproject d9a9ce47de8b88100e4230805bf44d394197476 diff --git a/bundle/deoplete b/bundle/deoplete deleted file mode 160000 -Subproject 5be25591770c5abc7214e8899c4d451c479ac2e diff --git a/bundle/deoplete-clangx b/bundle/deoplete-clangx deleted file mode 160000 -Subproject 197738ed344f4b1709b726a08cc5f3231fff2f1 diff --git a/bundle/neco-ghc b/bundle/neco-ghc deleted file mode 160000 -Subproject 682869aca5dd0bde71a09ba952acb59c543adf7 diff --git a/bundle/neoinclude b/bundle/neoinclude deleted file mode 160000 -Subproject 5125e73de0a8b4f2c399e4896e21be1b8f7b3d3 diff --git a/bundle/nvim-yarp b/bundle/nvim-yarp deleted file mode 160000 -Subproject 83c6f4e61aa73e2a53796ea6690fb7e5e64db50 diff --git a/bundle/vim-hug-neovim-rpc b/bundle/vim-hug-neovim-rpc deleted file mode 160000 -Subproject 701ecbb0a1f904c0b44c6beaafef35e1de998a9 diff --git a/bundle/vimproc b/bundle/vimproc deleted file mode 160000 -Subproject 51f4664c92f0f1b121127c84d3b1c901e1c698f diff --git a/config/bindings.vim b/config/bindings.vim deleted file mode 100644 index 3ddc4f9..0000000 --- a/config/bindings.vim +++ /dev/null @@ -1,87 +0,0 @@ -" set leader to , -let mapleader="," -let g:mapleader="," - -cnoremap <C-F> <Right> -cnoremap <C-B> <Left> -inoremap <C-F> <Right> -inoremap <C-B> <Left> -inoremap <C-N> <Down> -inoremap <C-P> <Up> - -" indent jumps -" <[l>, <]l>: exclusive jump to prev/next line with lower indent -" -" exclusive (bool): true: Motion is exclusive -" false: Motion is inclusive -" fwd (bool): true: Go to next line -" false: Go to previous line -" lowerlevel (bool): true: Go to line with lower indentation level -" false: Go to line with the same indentation level -" skipblanks (bool): true: Skip blank lines -" false: Don't skip blank lines -function! NextIndent(exclusive, fwd, lowerlevel, skipblanks) - let line = line('.') - let column = col('.') - let lastline = line('$') - let indent = indent(line) - let stepvalue = a:fwd ? 1 : -1 - while (line > 0 && line <= lastline) - let line = line + stepvalue - if ( ! a:lowerlevel && indent(line) == indent || - \ a:lowerlevel && indent(line) < indent) - if (! a:skipblanks || strlen(getline(line)) > 0) - if (a:exclusive) - let line = line - stepvalue - endif - exe line - exe "normal " column . "|" - return - endif - endif - endwhile -endfunction -" Moving back and forth between lines of same or lower indentation. -nnoremap <silent> [l :call NextIndent(1, 0, 1, 1)<CR> -nnoremap <silent> ]l :call NextIndent(1, 1, 1, 1)<CR> -vnoremap <silent> [l <Esc>:call NextIndent(1, 0, 1, 1)<CR>m'gv'' -vnoremap <silent> ]l <Esc>:call NextIndent(1, 1, 1, 1)<CR>m'gv'' -onoremap <silent> [l :call NextIndent(1, 0, 1, 1)<CR> -onoremap <silent> ]l :call NextIndent(1, 1, 1, 1)<CR> - -:command GT GhcModType -:command GTC GhcModTypeClear -:command GC GhcModCheckAndLintAsync - -" Type of expression under cursor -nmap <silent> <leader>ht :GhcModType<CR> -" Insert type of expression under cursor -nmap <silent> <leader>hT :GhcModTypeInsert<CR> -" GHC errors and warnings -nmap <silent> <leader>hc :SyntasticCheck ghc_mod<CR> -" Haskell Lint -nmap <silent> <leader>hl :SyntasticCheck hlint<CR> - -" Hoogle the word under the cursor -nnoremap <silent> <leader>hh :Hoogle<CR> - -" Hoogle and prompt for input -nnoremap <leader>hH :Hoogle - -" Hoogle for detailed documentation (e.g. "Functor") -nnoremap <silent> <leader>hi :HoogleInfo<CR> - -" Hoogle for detailed documentation and prompt for input -nnoremap <leader>hI :HoogleInfo - -" Hoogle, close the Hoogle window -nnoremap <silent> <leader>hz :HoogleClose<CR> - -" thanks to vim-slime, we can send v-mode selection to tmux by Ctrl-C Ctrl-C - -:command SP ConqueTermSplit zsh -:command VSP ConqueTermVSplit zsh -:command NL NeoCompleteLock -:command Black colors badwolf -:command Pretty colors solarized - diff --git a/config/deoplete.vim b/config/deoplete.vim deleted file mode 100644 index 3e2de67..0000000 --- a/config/deoplete.vim +++ /dev/null @@ -1,7 +0,0 @@ -" Change clang binary path -" call deoplete#custom#var('clangx', 'clang_binary', '/home/ztuowen/sycl/install/bin/clang') -call deoplete#custom#var('clangx', 'clang_binary', '/usr/bin/clang') - -" Change clang options -call deoplete#custom#var('clangx', 'default_c_options', '') -call deoplete#custom#var('clangx', 'default_cpp_options', '') @@ -1,5 +1,5 @@ let g:airline_powerline_fonts=1 -let g:deoplete#enable_at_startup = 1 +let g:ycm_use_clangd = 0 set laststatus=2 " set UTF-8 encoding |