From a5dbc46b32f9a1ab5685c006c66b5e0fbab3cb16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Wed, 11 Aug 2021 19:09:19 +0200 Subject: [PATCH] Initial commit. --- .gitignore | 1 + LICENSE | 24 +++++++++++++ README | 3 ++ init.vim | 100 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 128 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README create mode 100644 init.vim diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ddf2379 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +bundle/ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..68a49da --- /dev/null +++ b/LICENSE @@ -0,0 +1,24 @@ +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to diff --git a/README b/README new file mode 100644 index 0000000..17f0c71 --- /dev/null +++ b/README @@ -0,0 +1,3 @@ +This project is just my NeoVim config. If you wanna use it, go right ahead. +This just makes it easier for me to use across all my devices. It's licensed +under the Unlicense. diff --git a/init.vim b/init.vim new file mode 100644 index 0000000..b61a320 --- /dev/null +++ b/init.vim @@ -0,0 +1,100 @@ +set nocompatible +filetype off +set rtp+=~/.config/nvim/bundle/Vundle.vim +call vundle#begin('~/.config/nvim/bundle') +Plugin 'VundleVim/Vundle.vim' +Plugin 'tpope/vim-fugitive' +Plugin 'vim-airline/vim-airline' +Plugin 'vim-airline/vim-airline-themes' +Plugin 'scrooloose/nerdcommenter' +Plugin 'ervandew/supertab' +"Plugin 'vim-syntastic/syntastic' +Plugin 'vim-scripts/Trailer-Trash' +Plugin 'vim-scripts/bad-whitespace' +"Plugin 'alvan/vim-closetag' +Plugin 'danro/rename.vim' +Plugin 'ciaranm/detectindent' +Plugin 'jiangmiao/auto-pairs' +Plugin 'antoyo/vim-licenses' +Plugin 'altercation/vim-colors-solarized' +call vundle#end() +filetype plugin indent on +" to ignore plugin indent changes, instead use: +"filetype plugin on + +""" General +" indentation +set tabstop=4 " tabs only count for 4 spaces +set shiftwidth=4 " when indenting use 4 spaces +set noexpandtab " use tab characters +set autoindent + +" view +set number +set showmatch " show matching bracket +set incsearch " search as characters are typed +set hlsearch " highlight found matches +set incsearch nohlsearch " turn off hightlight after search +set wrap +set linebreak +set nolist " disable line break on wrap + +" folding +set foldmethod=syntax +set foldlevel=0 +set foldnestmax=1 + +" syntax highlighting +syntax on +set background=dark +colorscheme solarized + +""" key remapping +" cursor navigation +"nmap j gj +"nmap k gk +"vmap j gj +"vmap k gk + +" tab navigation +nmap :tabp +nmap :tabn + +" Rust +let g:rust_recommended_style = 0 " disable retarded option + +""" plugin settings +" airline +let g:airline#extensions#tabline#enabled = 1 " enable tabline +let g:airline_theme='luna' +if !exists('g:airline_symbols') + let g:airline_symbols = {} +endif +let g:airline_left_sep = '' +let g:airline_left_alt_sep = '' +let g:airline_right_sep = '' +let g:airline_right_alt_sep = '' +let g:airline_symbols.branch = '' +let g:airline_symbols.readonly = '' +let g:airline_symbols.linenr = '' +let g:airline_symbols.notexists = '∄' +let g:airline_symbols.spell = 'Ꞩ' +let g:airline_symbols.whitespace = 'Ξ' +let g:airline#extensions#whitespace#mixed_indent_algo = 2 +let g:airline#extensions#whitespace#checks = [ 'indent', 'long'] + +" syntastic +"set statusline+=%#warningmsg# +"set statusline+=%{SyntasticStatuslineFlag()} +"set statusline+=%* + +"let g:syntastic_cpp_checkers = [ "g++" ] +"let g:syntastic_always_populate_loc_list = 1 +"let g:syntastic_auto_loc_list = 1 +"let g:syntastic_check_on_open = 1 +"let g:syntastic_check_on_wq = 0 + +" vim-licenses +let g:licenses_copyright_holders_name = 'Ortega Froysa, Nicolás ' +let g:licenses_authors_name = 'Ortega Froysa, Nicolás ' +let g:licenses_default_command = [ 'Affero' ]