sisyphus/config/.vimrc

62 lines
1.2 KiB
VimL
Raw Normal View History

2022-04-22 14:54:27 +02:00
"
" ~/.vimrc
"
filetype on
filetype plugin on
filetype indent on
2022-04-25 12:39:34 +02:00
set tabstop=4
set shiftwidth=0
2022-04-22 14:54:27 +02:00
set expandtab
2022-04-26 16:31:05 +02:00
set smarttab
set autoindent
set smartindent
2022-04-22 14:54:27 +02:00
set incsearch
2022-06-02 15:50:03 +02:00
set nocompatible
2022-04-22 14:54:27 +02:00
set number
2022-06-02 15:50:03 +02:00
set showcmd
2022-04-22 14:54:27 +02:00
set showmatch
set title
set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx
2022-06-02 15:50:03 +02:00
syntax enable
2022-04-22 14:54:27 +02:00
" PLUGINS --------------------------------------------------------------- {{{
call plug#begin('~/.vim/plugged')
Plug 'dense-analysis/ale'
2022-06-02 15:50:03 +02:00
Plug 'https://github.com/vifm/vifm.vim.git'
2022-04-22 14:54:27 +02:00
call plug#end()
" }}}
if has("autocmd")
2022-06-02 15:50:03 +02:00
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
2022-04-22 14:54:27 +02:00
endif
2022-06-02 15:50:03 +02:00
" TALK ------------------------------------------------------------------ {{{
" https://youtu.be/XA2WjJbmmoM ----------------------------------------------
" Finding files using :find <name>
set path+=**
" Also use :b to select files in buffer
" Show suggestions on another line instead of inplace
set wildmenu
" Tags
" pacman -S ctags
command! MakeTags !ctags -R . &
" Move to defintion using ^]
" Move to ambigious using g^]
" Move back using ^t
" Autocomplete
" Also see https://vimhelp.org/options.txt.html#%27complete%27
" ^n next
" ^p previous
" ^x^f filename completion