Skip to content

Instantly share code, notes, and snippets.

Avatar

Andy Shevchenko ur4ltz

  • Kharkiv - Ukraine, Glory to Ukraine
View GitHub Profile
View vim-cheatsheet_ru.md

Конфиги

Навигация

Различные способы перехода в режим вставки

i " вставить текст до курсора
View .vimrc
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Maintainer:
" Amir Salihefendic
" http://amix.dk - amix@amix.dk
"
" Version:
" 5.0 - 29/05/12 15:43:36
"
" Blog_post:
" http://amix.dk/blog/post/19691#The-ultimate-Vim-configuration-on-Github
View gctags
#!/bin/bash
export GTAGSLABEL=ctags
if [ -r $PWD/.globalrc ]; then
GTAGSCONF=$PWD/.globalrc
elif [ -r $HOME/.globalrc ]; then
GTAGSCONF=$HOME/.globalrc
elif [ -r /usr/local/share/gtags/gtags.conf ]; then
GTAGSCONF=/usr/local/share/gtags/gtags.conf
@sagax
sagax / vim_article-1.md
Last active Feb 2, 2019
vim article-1
View vim_article-1.md

Такого еще не было на данном ресурсе, и надеюсь, что сообщество поддержит инициативу. Есть предложение, сделать живую статью, в которой все мы будем выкладывать клавиатурные сочетания, которые каждый из нас использует в повседневной работе с Vim. Я обязуюсь анализировать комментарии и добавлять в статью новые клавиатурные сочетания. Если клавиатурное сочетание использует какой-то плагин, то указываем его имя.


Навигация:

  • ge - перейти к концу предыдущего слова

Замена текста:

View git-gone
#!/bin/bash
usage() {
cat <<EOF
usage: git gone [-pldD] [<branch>=origin]
OPTIONS
-p prune remote branch
-n dry run: list the gone branches
-d delete the gone branches
-D delete the gone branches forcefully
@sagax
sagax / compile_vim_source.sh
Last active May 19, 2019
vim compile snippet
View compile_vim_source.sh
# lua compiling have some problems
# if OS 64 then lib64 in path
./configure --prefix="$HOME/vimp" \
--with-tlib=ncurses \
--with-ruby-command=ruby \
--with-tclsh=/usr/bin/tclsh8.6 \
--with-python3-config-dir=/usr/lib/python3.7/config \
--with-python-config-dir=/usr/lib/python2.7/config \
--with-luajit \
--with-lua-prefix=/usr/include \
@ap
ap / httpd-cgit.conf
Created Mar 31, 2009
cgit clean URLs Apache config
View httpd-cgit.conf
# cgit setup for Apache that results in completely clean URLs, ie.
# visiting http://git.example.org/ will produce the cgit index page
<VirtualHost *>
# this part is stand fare
ServerName git.example.org
DocumentRoot /var/www/htdocs/cgit/
<Directory "/var/www/htdocs/cgit/">
AllowOverride None
Options ExecCGI
Order allow,deny
@tungpt247
tungpt247 / sublime_text_3_license_key
Created Feb 5, 2015
Sublime Text 3 License Key (Build 3065)
View sublime_text_3_license_key
—– BEGIN LICENSE —–
K-20
Single User License
EA7E-940129
3A099EC1C0B5C7C5 33EBF0CF BE82FE3B
@ur4ltz
ur4ltz / install-vim-8-with-python-ruby-lua-opensuse.sh
Created Nov 11, 2019 — forked from Skrip42/install-vim-8-with-python-ruby-lua-opensuse.sh
Install Vim 8 with Python, Python 3, Ruby (2.5) and Lua support on openSuse
View install-vim-8-with-python-ruby-lua-opensuse.sh
# remove current vim
sudo zypper rm vim vim-runtime vim-gnome vim-tiny vim-gui-common
# removes current link for vim
sudo rm -rf /usr/local/share/vim /usr/bin/vim
# installs everything needed to make/configure/build Vim
sudo zypper in \
lua51-luajit \
lua51-luajit-devel \
@alexott
alexott / minimial-cedet-config.el
Created Oct 22, 2012
Working configuration for CEDET from bzr & GNU Emacs (with working C++ & Java name completion)
View minimial-cedet-config.el
;;; minimial-cedet-config.el --- Working configuration for CEDET from bzr
;; Copyright (C) Alex Ott
;;
;; Author: Alex Ott <alexott@gmail.com>
;; Keywords: cedet, C++, Java
;; Requirements: CEDET from bzr (http://cedet.sourceforge.net/bzr-repo.shtml)
;; Do checkout of fresh CEDET, and use this config (don't forget to change path below)