" ____ __ __ _ __ _ _ " / __ )/ /__ ____ ____/ /___ (_) /( )_____ _ __(_)___ ___ __________ " / __ / / _ \/ __ \/ __ / __ \/ / __/// ___/ | | / / / __ `__ \/ ___/ ___/ " / /_/ / / __/ / / / /_/ / /_/ / / /_ (__ ) _| |/ / / / / / / / / / /__ " /_____/_/\___/_/ /_/\__,_/\____/_/\__/ /____/ (_)___/_/_/ /_/ /_/_/ \___/ "Clear all autocommands :autocmd! let mapleader=";" "$VIMRC autocmd bufwritepost ~/.config/nvim/init.vim source % nnoremap :e ~/.config/nvim/init.vim "Vim files set backup set swapfile set undofile set backupdir=~/.local/share/nvim/backup// "Tilda file set directory=~/.local/share/nvim/swap// "Swap file set undodir=~/.local/share/nvim/undo// "Undo file set undolevels=200 set undoreload=2000 "Basic settings filetype plugin on syntax on set number relativenumber set scrolloff=4 "Show 3 lines below / above the cursor "File encoding set encoding=utf-8 set fileencoding=utf-8 "Tabs set showtabline=2 set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab set autoindent set smartindent "Code folding set foldmethod=indent set nofoldenable set foldnestmax=10 set foldlevel=2 "Navigation "Vim "nnoremap ZW :w nnoremap q :q nnoremap w :w nnoremap x :x "Buffer nnoremap j :bn nnoremap k :bp nnoremap d :bd nnoremap b :buffers "Windows "nnoremap h "nnoremap j "nnoremap k "nnoremap l "Tabs nnoremap h :tabp nnoremap l :tabn nnoremap t :tabnew "netrw "nnoremap e :E "nnoremap s :S "nnoremap v :vsplit "nnoremap o :browse oldfiles "Plugins call plug#begin('~/.local/share/nvim/vim-plug-blendoit') Plug 'lervag/vimtex' Plug 'vimwiki/vimwiki' Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' Plug 'vim-pandoc/vim-pandoc' Plug 'vim-pandoc/vim-pandoc-syntax' Plug 'junegunn/limelight.vim' Plug 'junegunn/goyo.vim' Plug 'dhruvasagar/vim-table-mode' Plug 'mbbill/undotree' call plug#end() "Airline let g:airline_theme='papercolor' let g:airline#extensions#tabline#enabled=1 "Pandoc "let g:pandoc#command#autoexec_command = "Pandoc! pdf" let g:pandoc#filetypes#handled = ["pandoc", "markdown"] let g:pandoc#filetypes#pandoc_markdown = 0 let g:pandoc#command#custom_open = "zathura" "Goyo/Limelight nnoremap g :Goyo autocmd! User GoyoEnter Limelight autocmd! User GoyoLeave Limelight! let g:limelight_conceal_ctermfg = 'gray' let g:limelight_conceal_ctermfg = 240 "Table mode let g:table_mode_corner_corner='+' let g:table_mode_header_fillchar='=' "FZF nnoremap f :FZF "Undotree nnoremap u :UndotreeToggle "writing shortcuts "Jump to next tag <++> inoremap /<++>"_c4l "LaTeX let g:vimtex_view_general_viewer='zathura' autocmd FileType tex nnoremap c :VimtexCompile "Insert mode autocmd FileType tex inoremap i \textit{}<++>T{i autocmd FileType tex inoremap b \textbf{}<++>T{i autocmd FileType tex inoremap e \emph{}<++>T{i autocmd FileType tex inoremap t bdwo\begin{pa}\end{pa}<++>O autocmd FileType tex inoremap l \item autocmd FileType tex inoremap s \textsc{}<++>T{i