Skip to content

Instantly share code, notes, and snippets.

@aswinpajayan
Last active April 23, 2020 05:42
Show Gist options
  • Save aswinpajayan/2e19608950b67866f6a36048dee192c3 to your computer and use it in GitHub Desktop.
Save aswinpajayan/2e19608950b67866f6a36048dee192c3 to your computer and use it in GitHub Desktop.
initial configs of my ubuntu
syntax on
filetype plugin on
execute pathogen#infect()
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
"these lines are needed for syntastic plugin
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
set mouse=a
nnoremap <C-S-tab> :tabp<CR>
nnoremap <C-tab> :tabn<CR>
nnoremap <C-t> :tabnew<CR>
inoremap <C-S-tab> <Esc>:tabprevious<CR>i
inoremap <C-tab> <Esc>:tabnext<CR>i
inoremap <C-t> <Esc>:tabnew<CR>
inoremap <C-S-w> <Esc>:tabclose<CR>
let g:airline_section_b = '%{strftime("%c")}'
let g:airline_section_y = 'BN:%{bufnr("%")}'
let g:airline_theme='papercolor'
let g:ale_set_balloons = 1
let g:ale_completion_enabled = 1
colorscheme CodeFactoryv3
" auto-install vim-plug
" auto-install didnt work, i might have to manually install vim plug
"
" call neomake#config#set('ft.python.InitForJob', function('CustomExe'))
" args: ['-fsyntax-only', '-Wall', '-Wextra', '-I./', '-std=c++1z']
"
" let g:neomake_c_clang_args = [
" \'-fsyntax-only', '-Wall', '-Wextra',
" \'-I/usr/local/include/opencv4',
" \'-I/usr/local/include/opencv4/opencv',
" \'-I/usr/include/gtk-3.0',
" \'-I/usr/include/cairo',
" \'-std=c++1z'
"\]
call neomake#configure#automake('nrwi', 500)
" enable ncm2 for all buffers
autocmd BufEnter * call ncm2#enable_for_buffer()
" IMPORTANT: :help Ncm2PopupOpen for more information
set completeopt=noinsert,menuone,noselect
" NOTE: you need to install completion sources to get completions. Check
" our wiki page for a list of sources: https://github.com/ncm2/ncm2/wiki
"}}}
"
"
"{{{-----------------configuration settings for netrw------------------
"
"
let g:netrw_browse_split=4 "opens the file in Previous window
let g:netrw_banner=0 "hides banner
let g:netrw_sort_by="exten" "sorts files based on extension
let g:netrw_winsize=15 "set the width of Vex to 15 columns
"let g:netrw_preview=1 "makes splits vertically instead of horizontal
"
"}}}
"
"
"}}}
"
"
"To toggle tagbar
map vt <Esc>:TagbarToggle<CR>Added sponsorship option
"{{{-------------- clipboard operations-------
nnoremap <c-y> "+yy
nnoremap <c-p> "+p
"---------------------------------------------
"{{{---------------To expands snippets--------
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsListSnippets="<c-tab>"
let g:UltiSnipsJumpForwardTrigger="<c-j>"
let g:UltiSnipsJumpBackwardTrigger="<c-k>"
"------------------------------------------}}}
"{{{------------------------------------ tag files
"
" set tags="./tags,tags,/home/aswin/lang_sources/ghdl/tags"
set tags=tags;/home/aswin/esp/esp-idf/tags;
""}}}
"" Configuring status line in place of airline
set ruler
"set rulerformat=%55(%{strftime('%a\ %b\ %e\ %I:%M\ %p')}\ %5l,%-6(%c%V%)\ %P%)
"set statusline=%<%f%h%m%r%=%{strftime(\"%l:%M:%S\ \%p,\ %a\ %b\ %d,\ %Y\")}\ %{&ff}\ %l,%c%V\ %P
"set statusline+=%#warningmsg#
"set statusline+=%{SyntasticStatuslineFlag()}
set foldmethod=syntax
set nofoldenable
"{{{--------------------airline configs---------------------
set encoding=UTF-8
let g:airline_section_b = '%{strftime("%a\ %b\ %e\ %I:%M\ %p")}'
let g:airline_section_y = 'BN:%{bufnr("%")}'
let g:airline_section_z = 'ﴜ:%2p%% %l:%c'
" air-line
let g:airline_powerline_fonts = 1
" air-line
let g:airline_powerline_fonts = 1
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
" unicode symbols
let g:airline_left_sep = '»'
let g:airline_left_sep = '▶'
let g:airline_right_sep = '«'
let g:airline_right_sep = '◀'
let g:airline_symbols.linenr = '␊'
let g:airline_symbols.linenr = '␤'
let g:airline_symbols.linenr = '¶'
let g:airline_symbols.branch = '⎇'
let g:airline_symbols.paste = 'ρ'
let g:airline_symbols.paste = 'Þ'
let g:airline_symbols.paste = '∥'
let g:airline_symbols.whitespace = 'Ξ'
" airline symbols
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:neomake_warning_sign = {
\ 'text': '',
\ 'texthl': 'NeomakeWarningSign',
\ }
let g:airline_detect_whitespace=0
let g:airline#extensions#whitespace#enabled = 0
let g:airline_theme='material'
"""{{{-------------Ranger vim settings----------
let g:ranger_explorer_keymap_edit = '<C-o>'
let g:ranger_explorer_keymap_tabedit = '<C-t>'
let g:ranger_explorer_keymap_split = '<C-s>'
let g:ranger_explorer_keymap_vsplit = '<C-v>'
let g:ranger_replace_netrw = 1 " open ranger when vim open a directory
let g:loaded_netrw = 1
let g:loaded_netrwPlugin = 1
nnoremap rnc <Esc>:RangerOpenCurrentDir<CR>
nnoremap rnp <Esc>:RangerOpenProjectRootDir<CR>
"""------------------------------------------}}}
""------------Congfig for browserlink---------"""
""node needs to be installed for this to work"""
nnoremap bt <Esc>o<script src='http://127.0.0.1:9001/js/socket.js'></script><CR><Esc>
"""----------------latex autocmd----------------
autocmd BufWritePost,FileWritePost *.tex :silent !pdflatex *.tex
git clone https://github.com/PandorasFox/i3lock-color.git
cd i3lock-color
sudo apt install libev-dev -y
sudo apt install libxcb-composite0 libxcb-composite0-dev libxcb-xinerama0 libxcb-randr0 -y
sudo apt install autoconf -y
sudo apt install libxcb-xinerama0-dev -y
sudo apt install libxcb-xkb-dev -y
sudo apt install libxcb-image0-dev -y
sudo apt install libxcb-util-dev -y
sudo apt install libxkbcommon-x11-dev -y
sudo apt-get install libxcb-xrm-dev -y
sudo apt install libjpeg-turbo8-dev -y
sudo apt install libxcb-randr0-dev -y
sudo apt install libpam0g-dev -y
sudo apt install i3lock -y
autoreconf -i && ./configure && make
#installing themes
sudo apt install lxappearance -y
sudo apt install xsettingsd -y
sudo apt-get install lxappearance gtk-chtheme qt4-qtconfig -y
# https://www.cs.cornell.edu/~edward/awesome.html
sudo apt install rofi -y
#install i3lock-color from github and then
sudo apt install xautolock -y
#install lain lua library
git clone https://github.com/lcpz/lain
# get the modified holo theme from my github/dotfiles
sudo apt update -y
sudo apt upgrade -y
sudo apt install python3 -y
sudo apt install python3-pip -y
sudo apt install build-essentials -y
sudo apt install openjdk-11-jdk -y
sudo apt install git -y
sudo apt install vim-gtk -y
sudo apt install neovim -y
sudo apt install octave -y
sudo apt install gimp -y
sudo apt install gnome-tweak-tool -y
sudo apt install chrome-gnome-shell -y
sudo apt install cmus -y
sudo apt install ranger -y
sudo apt install alacritty -y
sudo apt install zathura -y
sudo pip3 install ueberzeg -y
sud apt install w3m -y
#sudo apt install texlive-full -y
#sudo apt install texstudio -y
sudo apt install axel -y
sudo apt install xclip -y
sudo apt install openssh-server -y
sudo apt install arc-theme -y
sudo apt install curl -y
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
youtube-dl -U
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
sudo add-apt-repository ppa:noobslab/themes <CR>
sudo apt install arrongin-telinkrin-themes
sudo apt install stylish-themes -y
sudo apt install sweet-themes -y
sudo add-apt-repository ppa:noobslab/icons <CR>
sudo apt install zafiro-icons -y
@aswinpajayan
Copy link
Author

some more plugins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment