Fancy-fy vimrc
This commit is contained in:
2
dotdrop
2
dotdrop
Submodule dotdrop updated: 6474a48961...18a61bce60
@@ -11,6 +11,6 @@ export LANGUAGE="en_US.UTF-8"
|
|||||||
/share/bin/isda
|
/share/bin/isda
|
||||||
~/bin/.keyboard.scm &
|
~/bin/.keyboard.scm &
|
||||||
xrandr --output HDMI-2 --auto --right-of HDMI-1
|
xrandr --output HDMI-2 --auto --right-of HDMI-1
|
||||||
picom &
|
compton &
|
||||||
i3
|
i3
|
||||||
{%@@ endif @@%}
|
{%@@ endif @@%}
|
||||||
|
|||||||
@@ -1,39 +1,23 @@
|
|||||||
" Vundle Plugin Manager - START
|
" ------------------------------------- Vundle Setup ---------------------------
|
||||||
" Required
|
|
||||||
set nocompatible
|
set nocompatible
|
||||||
set rtp+=~/.vim/bundle/Vundle.vim
|
set rtp+=~/.vim/bundle/Vundle.vim
|
||||||
call vundle#begin()
|
call vundle#begin()
|
||||||
|
|
||||||
" Plugins - load with :PluginInstall
|
|
||||||
Plugin 'VundleVim/Vundle.vim'
|
Plugin 'VundleVim/Vundle.vim'
|
||||||
Plugin 'tpope/vim-fugitive'
|
|
||||||
Plugin 'tmsvg/pear-tree'
|
|
||||||
|
|
||||||
" Colorscheme
|
Plugin 'tpope/vim-fugitive' " Git wrapper
|
||||||
|
Plugin 'tmsvg/pear-tree' " parathesis matching
|
||||||
|
Plugin 'vimwiki/vimwiki'
|
||||||
|
|
||||||
|
" Colors
|
||||||
Plugin 'arcticicestudio/nord-vim'
|
Plugin 'arcticicestudio/nord-vim'
|
||||||
Plugin 'vim-airline/vim-airline'
|
Plugin 'vim-airline/vim-airline'
|
||||||
Plugin 'vim-airline/vim-airline-themes'
|
Plugin 'vim-airline/vim-airline-themes'
|
||||||
|
|
||||||
Plugin 'vimwiki/vimwiki'
|
|
||||||
|
|
||||||
" Required
|
|
||||||
call vundle#end()
|
call vundle#end()
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
" Vundle Plugin Manager - END
|
|
||||||
|
|
||||||
" Plugin Settings
|
|
||||||
|
|
||||||
" airline bar
|
|
||||||
let g:airline_theme='nord'
|
|
||||||
let g:airline_powerline_fonts = 1
|
|
||||||
let g:bufferline_echo = 0
|
|
||||||
|
|
||||||
set guifont="InconsolataLGC Nerd Font Mono"
|
|
||||||
|
|
||||||
" Onedark Colorscheme
|
|
||||||
let g:onedark_hide_endofbuffer=1
|
|
||||||
let g:onedark_terminal_italics=1
|
|
||||||
|
|
||||||
|
" ------------------------------------- Plugin Settings ------------------------
|
||||||
" PearTree
|
" PearTree
|
||||||
let g:pear_tree_smart_openers=1
|
let g:pear_tree_smart_openers=1
|
||||||
let g:pear_tree_smart_closers=1
|
let g:pear_tree_smart_closers=1
|
||||||
@@ -47,43 +31,40 @@ let g:pear_tree_pairs = {
|
|||||||
\ '"': {'closer': '"'},
|
\ '"': {'closer': '"'},
|
||||||
\ '<': {'closer': '>'}
|
\ '<': {'closer': '>'}
|
||||||
\ }
|
\ }
|
||||||
|
"
|
||||||
" Vimwiki
|
" Vimwiki
|
||||||
let g:vimwiki_list = [{'path': '~/vimwiki/',
|
let g:vimwiki_list = [{'path': '~/vimwiki/',
|
||||||
\ 'syntax': 'markdown', 'ext': '.md'}]
|
\ 'syntax': 'markdown', 'ext': '.md'}]
|
||||||
|
|
||||||
" Other configurations
|
" Airline
|
||||||
" Colors
|
let g:airline_theme='nord'
|
||||||
|
let g:airline_powerline_fonts = 1
|
||||||
|
let g:bufferline_echo = 0
|
||||||
|
|
||||||
|
set guifont="InconsolataLGC Nerd Font Mono"
|
||||||
|
" ------------------------------------- Colors ---------------------------------
|
||||||
syntax on
|
syntax on
|
||||||
colorscheme nord
|
colorscheme nord
|
||||||
filetype on
|
set colorcolumn=81
|
||||||
filetype indent plugin on
|
filetype indent plugin on
|
||||||
set colorcolumn=80
|
|
||||||
|
|
||||||
" Numbers at the left side
|
" ------------------------------------- General --------------------------------
|
||||||
set number
|
set number
|
||||||
:highlight LineNr ctermfg=white "color
|
" :highlight LineNr ctermfg=white "color
|
||||||
"set relativenumber
|
set showmatch " Highlights paranthesis
|
||||||
|
|
||||||
" Parathesis highlighting
|
|
||||||
set showmatch
|
|
||||||
set mat=5
|
set mat=5
|
||||||
|
|
||||||
" General
|
|
||||||
set noswapfile
|
set noswapfile
|
||||||
set confirm "cant quit wo saving
|
set confirm " can't quit without saving
|
||||||
"set showmode " shows editing mode in status
|
set noshowmode " don't show mode in status
|
||||||
set noshowmode " reverse of above
|
set noshowcmd " don't show command in status
|
||||||
"set showcmd " shows commands in status
|
set cursorline " highlight cursorline
|
||||||
set noshowcmd " reverse of above
|
|
||||||
set cursorline " highlight current line
|
|
||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
set mouse=a
|
set mouse=a
|
||||||
set mouse=c
|
set mouse=c
|
||||||
set undolevels=1337
|
set undolevels=1337
|
||||||
set backspace=indent,eol,start
|
set backspace=indent,eol,start
|
||||||
|
|
||||||
" Indents
|
" ------------------------------------- Indents & Whitespaces ------------------
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
set softtabstop=4
|
set softtabstop=4
|
||||||
set shiftwidth=4
|
set shiftwidth=4
|
||||||
@@ -97,32 +78,32 @@ autocmd FileType perl setlocal tabstop=8 shiftwidth=8 softtabstop=8 noexpandtab
|
|||||||
autocmd FileType conf setlocal tabstop=8 shiftwidth=8 softtabstop=8 noexpandtab
|
autocmd FileType conf setlocal tabstop=8 shiftwidth=8 softtabstop=8 noexpandtab
|
||||||
autocmd FileType yaml setlocal tabstop=2 shiftwidth=2 softtabstop=2 expandtab
|
autocmd FileType yaml setlocal tabstop=2 shiftwidth=2 softtabstop=2 expandtab
|
||||||
|
|
||||||
" Whitespaces
|
|
||||||
set list
|
set list
|
||||||
"hi SpecialKey ctermbg=Darkgray " colored tabs
|
|
||||||
"set listchars=tab:>-,trail:\\ " default
|
|
||||||
set listchars=tab:»\ ,extends:›,precedes:‹,nbsp:·,trail:·
|
set listchars=tab:»\ ,extends:›,precedes:‹,nbsp:·,trail:·
|
||||||
|
|
||||||
" Search
|
" ------------------------------------- Search ---------------------------------
|
||||||
set incsearch
|
set incsearch
|
||||||
set ignorecase
|
set ignorecase
|
||||||
set smartcase " case sens only when capitol letters
|
set smartcase " case sensitive with capital letters
|
||||||
set hlsearch " highlight all results
|
set hlsearch " highlight all results
|
||||||
nnoremap<leader><space> :nohlsearch<CR>
|
nnoremap<leader><space> :nohlsearch<CR>
|
||||||
|
|
||||||
" Macros (cmap old new)
|
" ------------------------------------- netrw ----------------------------------
|
||||||
|
map <C-f> :Ex <CR>
|
||||||
|
|
||||||
|
let g:netrw_winsize = 25
|
||||||
|
let g:netrw_browse_split = 4 " open in previous window
|
||||||
|
let g:netrw_liststyle = 3 " Tree-like structure
|
||||||
|
let g:netrw_banner = 0 " Remove useless banner at the top of netrw
|
||||||
|
|
||||||
|
" ------------------------------------- Macros & Mappings ----------------------
|
||||||
cmap Wq wq
|
cmap Wq wq
|
||||||
cmap Q q
|
cmap Q q
|
||||||
cmap W w
|
cmap W w
|
||||||
cmap q1 q!
|
cmap q1 q!
|
||||||
map <C-f> :Ex <CR>
|
|
||||||
let g:netrw_banner = 0
|
|
||||||
|
|
||||||
" go to line edited, when closed
|
" Return to last edited line
|
||||||
if has("autocmd")
|
if has("autocmd")
|
||||||
au BufReadPost * if line("' f\"") > 0 && line("'\"") <= line("$")
|
au BufReadPost * if line("' f\"") > 0 && line("'\"") <= line("$")
|
||||||
\| exe "normal! g'\"" | endif
|
\| exe "normal! g'\"" | endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" no clue, got it from a co-worker
|
|
||||||
au BufNewFile,BufRead *.itex set filetype=tex
|
|
||||||
|
|||||||
Reference in New Issue
Block a user