new vim configuration 0.1... :)
This commit is contained in:
parent
b068634734
commit
3f21d6fa82
4 changed files with 25 additions and 6 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -49,7 +49,7 @@
|
||||||
!.Xresources
|
!.Xresources
|
||||||
!.vim
|
!.vim
|
||||||
!.vim/**
|
!.vim/**
|
||||||
.vim/plugged/*/.git
|
.vim/plugged/*
|
||||||
.vim/.netrwhist
|
.vim/.netrwhist
|
||||||
!.xinitrc
|
!.xinitrc
|
||||||
!.zoha.toml
|
!.zoha.toml
|
||||||
|
|
|
||||||
19
.vim/coc-settings.json
Normal file
19
.vim/coc-settings.json
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
languageserver": {
|
||||||
|
"ccls": {
|
||||||
|
"command": "ccls",
|
||||||
|
"args": ["--log-file=/tmp/ccls.log", "-v=1"],
|
||||||
|
"filetypes": ["c", "cc", "cpp", "c++", "objc", "objcpp"],
|
||||||
|
"rootPatterns": [".ccls", "compile_commands.json"],
|
||||||
|
"initializationOptions": {
|
||||||
|
"cache": {
|
||||||
|
"directory": "/tmp/ccls"
|
||||||
|
},
|
||||||
|
"client": {
|
||||||
|
"snippetSupport": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"clangd.path": "/usr/bin/clangd"
|
||||||
|
}
|
||||||
|
|
||||||
0
.vim/plugged/.gitkeep
Normal file
0
.vim/plugged/.gitkeep
Normal file
10
.vimrc
10
.vimrc
|
|
@ -3,21 +3,21 @@ call plug#begin()
|
||||||
" List your plugins here
|
" List your plugins here
|
||||||
Plug 'tpope/vim-sensible'
|
Plug 'tpope/vim-sensible'
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
|
Plug 'bluz71/vim-moonfly-colors', { 'as': 'moonfly' }
|
||||||
|
Plug 'flazz/vim-colorschemes'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
" Execute pathogen
|
" feral gentooish grb256 jellygrass kalt last256 matrix
|
||||||
"execute pathogen#infect()
|
colorscheme feral
|
||||||
|
|
||||||
" Load NERDTree plugin only if opening vim without a file
|
" Load NERDTree plugin only if opening vim without a file
|
||||||
"autocmd VimEnter * NERDTree
|
"autocmd VimEnter * NERDTree
|
||||||
"autocmd StdinReadPre * let s:std_in=1
|
"autocmd StdinReadPre * let s:std_in=1
|
||||||
"autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
|
"autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
|
||||||
|
|
||||||
" Open NERDTree with Ctrl+n / Toggle
|
" Open NERDTree with Ctrl+n / Toggle
|
||||||
" map <C-n> :NERDTreeToggle<CR>
|
" map <C-n> :NERDTreeToggle<CR>
|
||||||
|
|
||||||
" close vim if the only window left open is a NERDTree
|
" close vim if the only window left open is a NERDTree
|
||||||
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
|
"autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
|
||||||
|
|
||||||
" Remember position in file
|
" Remember position in file
|
||||||
if has("autocmd")
|
if has("autocmd")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue