From f7371037e5c8e1d734737df50c49700852fb57db Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Thu, 29 Oct 2020 13:18:20 +0300 Subject: comments and config on separate lines --- .config/nvim/init.vim | 47 ++++++++++++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 19 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 136da45..60f443a 100755 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -142,8 +142,9 @@ Plug 'tpope/vim-obsession' " fancy start screen Plug 'mhinz/vim-startify' -Plug 'ryanoasis/vim-devicons' " asks to be placed last, sure -call plug#end() " required +" asks to be placed last, sure +Plug 'ryanoasis/vim-devicons' +call plug#end() "}}} @@ -163,8 +164,7 @@ autocmd FileType markdown,tex setlocal spell autocmd FileType rust let b:dispatch = 'cargo run' -autocmd FileType vimwiki,latex,tex setlocal formatprg=/home/yigit/bin/sentences - +autocmd FileType vimwiki,latex,tex setlocal formatprg=/home/yigit/.local/bin/sentences " TODO: this will get supported on nvim 0.5.0 " TODO: this too https://www.reddit.com/r/neovim/comments/gxcbui/in_built_lsp_is_amazing/ @@ -235,7 +235,8 @@ let g:yoinkIncludeDeleteOperations = 1 " Tab stuff set autoindent -set expandtab " Use appropriate number of spaces to insert a +" Use appropriate number of spaces to insert a +set expandtab set shiftwidth=4 set softtabstop=4 set tabstop=8 @@ -250,21 +251,29 @@ set wildignore=*.o,*.obj,*.class,*.aux,*.lof,*.log,*.lot,*.fls,*.toc,*.fmt,*.fot let g:NERDTreeRespectWildIgnore = 1 set nojoinspaces -set scrolloff=4 " Keep n lines above/below cursor -set number " line numbers -set foldmethod=marker " folding stuffs -set title " set terminal title -set linebreak " wrap using 'breakat' character -set splitbelow " new split panes will split to below and right +" Keep n lines above/below cursor while scrolling +set scrolloff=4 +" line numbers +set number +" fold manually, when i place markers +set foldmethod=marker +" set terminal title +set title +" wrap using 'breakat' character +set linebreak +" new split panes will split to below and right +set splitbelow set splitright -set cursorline " highlight the current line -set relativenumber " current line actual number, rest are relative -set noshowmode " we are already using airline, don't clobber linter messages - -set showmatch " jump to the matching bracket briefly -set hidden " move freely between buffers - -set thesaurus+=~/.local/share/thesaurus.txt +" highlight the current line, yoc undoes +set cursorline +" current line actual number, rest are relative +set relativenumber +" we are already using airline, don't clobber linter messages +set noshowmode +" jump to the matching bracket briefly +set showmatch +" move freely between buffers +set hidden " persistent undo set undodir=~/.vim/undodir -- cgit v1.2.3-70-g09d2