Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

next #127

Merged
merged 2 commits into from
Feb 2, 2024
Merged

next #127

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 1 addition & 17 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ Plug 'preservim/tagbar'
call plug#end()
" }}}


" plugin settings {{{

" vim-airline {{{
Expand All @@ -79,13 +78,12 @@ let g:airline_solarized_bg='dark'
let g:netrw_liststyle = 3
let g:netrw_browse_split = 4
let g:netrw_altv = 1
let g:netrw_winsize = 25
let g:netrw_winsize = 20

augroup ProjectDrawer
autocmd!
autocmd VimEnter * if expand("%") == "" | edit . | endif
augroup END

" }}}

" Dispatch {{{
Expand All @@ -97,7 +95,6 @@ command! Cw call DispatchCw()
" }}}

" CoC {{{

" Based on https://github.com/neoclide/coc.nvim#example-vim-configuration
set encoding=utf-8

Expand Down Expand Up @@ -140,7 +137,6 @@ nmap <silent> gd <Plug>(coc-definition)
nmap <silent> gy <Plug>(coc-type-definition)
nmap <silent> gi <Plug>(coc-implementation)
nmap <silent> gr <Plug>(coc-references)

" }}}

" lvimrc {{{
Expand All @@ -157,13 +153,11 @@ let g:tex_flavor='latex'

" }}}


" colorscheme {{{
set background=dark
colorscheme solarized
" }}}


" row numbers {{{
set relativenumber
set number
Expand All @@ -178,7 +172,6 @@ nnoremap <silent> <F6> :call ToggleLineNumber()<CR>

" }}}


" end column highlighting {{{
function! SetTextWidth(myTextwidth)
let myEndColumn = a:myTextwidth
Expand All @@ -190,7 +183,6 @@ endfunction
call SetTextWidth(80)
" }}}


" function jump to last pos open {{{
function! JumpToLastPosOpen()
if exists("b:NoJumpToLastPosOpen")
Expand All @@ -203,7 +195,6 @@ endfunction
autocmd BufReadPost * call JumpToLastPosOpen()
" }}}


" cursor movement by line {{{
noremap <buffer> <silent> k gk
noremap <buffer> <silent> j gj
Expand All @@ -214,22 +205,19 @@ onoremap <silent> j gj
onoremap <silent> k gk
" }}}


" indentation {{{
set expandtab
set tabstop=4
set shiftwidth=4
set shiftround
" }}}


" syntax highlighting {{{
let g:load_doxygen_syntax=1
let g:doxygen_javadoc_autobrief=0
let g:python_highlight_all = 1
" }}}


" search, replace {{{
set ignorecase
set smartcase
Expand Down Expand Up @@ -259,7 +247,6 @@ else
endif
" }}}


" spelling {{{
highlight SpellErrors guibg=red guifg=black ctermbg=red ctermfg=black

Expand Down Expand Up @@ -341,7 +328,6 @@ function! DeleteHiddenUnmodifiedBuffers()
endfunction
" }}}


" auto close quickfix {{{
function! AutoCloseQuickfix()
if winnr('$') == 1 && getbufvar(winbufnr(winnr()), "&buftype") == "quickfix"
Expand All @@ -355,14 +341,12 @@ augroup QFClose
augroup END
" }}}


" folding {{{
set foldmethod=syntax
set foldlevel=3
set foldnestmax=5
" }}}


" misc {{{
set wildignore=.svn,CVS,.git,*.o,*.a,*.class,*.mo,*.la,*.so,*.obj,*.swp
\,*.jpg,*.png,*.xpm,*.gif,*.h5,*.pdf,*.aux,*.ods,*.bbl
Expand Down