Configuration files for my GNU/Linux installation.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
dotfiles/vimrc

75 lines
1.9 KiB

" ##############..... ##############
" ##############......##############
" ##########..........##########
" ##########........##########
" ##########.......##########
" ##########.....##########..
" ##########....##########.....
" ..##########..##########.........
" ....##########.#########.............
" ..################JJJ............
" ################.............
" ##############.JJJ.JJJJJJJJJJ
" ############...JJ...JJ..JJ JJ
" ##########....JJ...JJ..JJ JJ
" ########......JJJ..JJJ JJJ JJJ
" ###### .........
" .....
" .
set mouse=a
set wrap
set noet
set autoindent
set noexpandtab " If this doesn't work for a lang change the $LANG.vim and append this here
set tabstop=4
set shiftwidth=4
vmap <Tab> >gv
vmap <S-Tab> <gv
syntax on
set nu
set ruler
" Vim-Plug
call plug#begin('~/.vim/plugged')
Plug 'https://github.com/hugolgst/vimsence.git' " Discord Presence
Plug 'sheerun/vim-polyglot' " Syntax highlightning
Plug 'preservim/nerdtree' " Tree navigation
Plug 'rafi/awesome-vim-colorschemes' " Theme collection
Plug 'chriskempson/base16-vim' " Theme
call plug#end()
" Mapping
" CTRL + D to open navtree
nmap <silent> <C-D> :NERDTreeToggle<CR>
" CTRL + F to enter goyo mode
nmap <silent> <C-F> :Goyo x100%<CR>
" Replace
vnoremap <C-r> "hy:%s/<C-r>h//gc<left><left><left>
" Theme
set t_Co=256
colors default
let &showbreak = '↳ '
hi Normal guibg=NONE ctermbg=NONE
highlight clear LineNr
highlight LineNr ctermfg=grey ctermbg=NONE
" Syntax highlightning
let asmsyntax = 'nasm'
" YCM
set completeopt-=preview
let g:ycm_show_diagnostics_ui = 0
" Tabs
nnoremap <silent> <C-Left> :tabprevious<CR>
nnoremap <silent> <C-Right> :tabnext<CR>
nnoremap <silent> <C-j> :tabprevious<CR>
nnoremap <silent> <C-k> :tabnext<CR>