From 3e565cda7e22df171f920e48d24125a7a7d1d89c Mon Sep 17 00:00:00 2001 From: Matheus R Date: Tue, 9 Feb 2021 16:26:22 -0300 Subject: Adicionada configuração do nvim, e atualizado arquivo aliases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nvim/.netrwhist | 12 +++++ nvim/init.vim | 154 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 166 insertions(+) create mode 100644 nvim/.netrwhist create mode 100644 nvim/init.vim (limited to 'nvim') diff --git a/nvim/.netrwhist b/nvim/.netrwhist new file mode 100644 index 0000000..1d3c251 --- /dev/null +++ b/nvim/.netrwhist @@ -0,0 +1,12 @@ +let g:netrw_dirhistmax =10 +let g:netrw_dirhistcnt =9 +let g:netrw_dirhist_9='/home/math' +let g:netrw_dirhist_8='/home/math/vimwiki/templates' +let g:netrw_dirhist_7='/home/math/vimwiki' +let g:netrw_dirhist_6='/home/math' +let g:netrw_dirhist_5='/home' +let g:netrw_dirhist_4='/home/math' +let g:netrw_dirhist_3='/home/math/.config/ncspot' +let g:netrw_dirhist_2='/home/math/.config' +let g:netrw_dirhist_1='/home/math' +let g:netrw_dirhist_0='/home/math/.config/lf' diff --git a/nvim/init.vim b/nvim/init.vim new file mode 100644 index 0000000..c48af7f --- /dev/null +++ b/nvim/init.vim @@ -0,0 +1,154 @@ +" Maps 'ç' to save +map çç :w + +" Exit terminal mode +tnoremap q +set tabstop=2 +set shiftwidth=2 +set expandtab +set autoindent +set smartindent +set clipboard=unnamedplus +syntax on +filetype plugin indent on +set nocompatible +let mapleader = '\' +set ruler +" Hybrid line numbers +set number relativenumber +set mousemodel=popup +set nocursorline +"" Status bar +set laststatus=2 + +" Plugins com vim-plug +call plug#begin() + +" Lightline +Plug 'itchyny/lightline.vim' + +" fugitive +Plug 'tpope/vim-fugitive' + +" Rust support +Plug 'rust-lang/rust.vim' + +" Rigel theme +Plug 'Rigellute/rigel' + +" Syntastic +Plug 'vim-syntastic/syntastic' + +" VimWiki +Plug 'vimwiki/vimwiki' + +" Vim-lua +Plug 'tbastos/vim-lua' + +call plug#end() + +" Linewrap with a single command +command! -nargs=* Wrap set wrap linebreak nolist + +" Consertando as cores no st +let &t_8f = "\[38;2;%lu;%lu;%lum" +let &t_8b = "\[48;2;%lu;%lu;%lum" + +" Vimwiki +let g:vimwiki_list = [{ + \ 'path': '~/vimwiki', + \ 'template_path': '~/vimwiki/templates/', + \ 'template_default': 'default', + \ 'syntax': 'markdown', + \ 'ext': '.md', + \ 'path_html': '~/vimwiki/html/', + \ 'custom_wiki2html': 'vimwiki_markdown', + \ 'template_ext': '.tpl'}] + +map wa :VimwikiAll2HTML +map = `VimwikiAddHeaderLevel + +" Configurações do netrw +nmap = :Lexplore +let g:netrw_banner = 0 +let g:netrw_liststyle = 0 +let g:netrw_browse_split = 4 +let g:netrw_winsize = 25 + +" enable Rigel theme +syntax enable +colorscheme rigel +set t_Co=256 +color rigel + +" Transparent background +hi Normal guibg=NONE ctermbg=NONE +highlight LineNr ctermfg=NONE ctermbg=NONE + +noremap col('.') == match(getline('.'),'\S')+1 ? '0' : '^' +imap + +"So I can move around in insert +inoremap gk +inoremap +inoremap +inoremap gj + +" Autocomplete brackets, etc. +inoremap " "" +inoremap ' '' +inoremap ( () +inoremap [ [] +inoremap { {} +inoremap { {}O +inoremap {; {};O + +set wrap linebreak nolist +set nofoldenable +let g:syntastic_html_tidy_ignore_errors=[" proprietary attribute " ,"trimming empty <", "unescaped &" , "lacks \"action", "is not recognized!", "discarding unexpected", "a", "e", "i", "o", "u"] +let g:syntastic_tex_chktex_showmsgs = 0 + +set statusline=%F%m%r%h%w%=(%{&ff}/%Y)\ (line\ %l\/%L,\ col\ %c) +set backspace=indent,eol,start + +set gcr=a:blinkon0 +set scrolloff=3 + +let no_buffers_menu=1 + +set fileformats=unix,dos,mac +set showcmd +set shell=/bin/sh + +set nobackup +set noswapfile + +set hlsearch +set incsearch +set ignorecase +set smartcase + +"" Encoding +set bomb +set ttyfast +set binary +set hidden +set encoding=utf-8 +set fileencoding=utf-8 +set fileencodings=utf-8 +set timeoutlen=250 ttimeoutlen=250 +" Tagbar +map :TagbarToggle +let g:tagbar_autofocus = 1 + +"" Open current line on GitHub +noremap ,o :!echo `git url`/blob/`git rev-parse --abbrev-ref HEAD`/%\#L=line('.') \| xargs xdg-open + +"" Clean search (highlight) +nnoremap :noh + +set cc=80 + +let g:rigel_lightline = 1 +let g:lightline = { 'colorscheme': 'rigel' } +let g:syntastic_enable_racket_racket_checker = 1 -- cgit v1.2.3