recentpopularlog in


« earlier   
Eliminating delays on ESC in vim and zsh - John Hawthorn
While having a vim discussion on twitter with @_jaredn, I remembered that having a delay in entering normal mode after pressing ESC (switching to normal mode) really frustrates me. This delay exists because many keys (arrows keys, ALT) rely on it as an escape character. Here’s the setup I’ve used for a while for near instantaneous switch into normal mode.
2012  blogpost  links  vim  configuration  keyboard  terminal  tmux  screen  tips  example 
yesterday by ezequiel
How do I get Vim to recognize ESC key faster? - Stack Overflow
Q: I use Vim, almost exclusively in the console. When I exit insert mode by pressing <ESC>, there is a noticeable lag in Vim's recognizing the command. The lag is similar to the delay when I push the <leader> key, I assume to give me time to enter other characters in a mapping. Is there an option I can set to get Vim to recognize the escape key faster?
2012  forumthread  stackexchange  vim  configuration  keyboard  terminal  example  tips  tmux  screen 
yesterday by ezequiel
Why does vim incsearch pause when cancelling a search with the <ESC> key? - Stack Overflow
Q: In vim, if you set incsearch then it will scroll to the next match of your current search term without moving the cursor. I often use this to read a section of code without moving the cursor there, because I can then hit <ESC> and the screen will return back to wherever my cursor was when I started searching.

However, vim has a pause after you hit <ESC>, and before it scrolls back to the cursor. I find this pause very irritating. What is the purpose behind this pause, and/or is this pause configurable?
2012  vim  configuration  tips  example  forumthread  stackexchange  keyboard  tmux  screen  terminal 
yesterday by ezequiel
vimscript - How can I get the character at the cursor position in a multibyte aware manner? - Vi and Vim Stack Exchange
Q: [...] Vim has several useful functions for dealing with strings in a multibyte-aware fashion, but getting the cursor position seems difficult: [...]
2017  forumthread  stackexchange  vim  scripting  example  tips  links  unicode 
yesterday by ezequiel
Changing lightline colorscheme on the fly · Issue #258 · itchyny/lightline.vim
Q: I was hoping to test out the different lightline colorschemes to see which I liked best, and in a wanton episode of yak-shaving ended up writing the following command to change colorscheme, including command-line completion for the colorscheme names.
2017  github  plugin  vim  issue  configuration  colour  links  example  scripting 
yesterday by ezequiel
kriadmin/30-seconds-of-python-code: Python implementation of 30-seconds-of-code
Table of contents
📚 List
View contents
➗ Math
View contents
🗃 Object
View contents
📜 String
View contents
programming  python  code  example 
2 days ago by dicewitch
JavaScript Semantic Completion through Tern · Valloric/YouCompleteMe Wiki · GitHub
JavaScript completion is based on Tern. This completion engine requires a file named .tern-project to exist in the current working directory or a directory which is an ancestor of the current working directory when the Tern server is started.
tern.js  javascript  tool  development  programming  wikientry  howto  configuration  example  github  guide  tips  vim  plugin 
2 days ago by ezequiel
Tern Reference Manual
Tern consists of several components. Depending on what you are trying to do with it, you will be interested in a different layer. At the very top are the editor plugins. These talk to a Tern server, which is implemented on top of the server module, which uses the inference engine to do the actual type inference.
tern.js  javascript  documentation  reference  manual  guide  faq  tips  configuration  example  online  tool  editor  plugins 
2 days ago by ezequiel
git merge - How to stash unmerged code in git? - Stack Overflow
Q: I did a git pull and found that one of my files needs to be merged.

I don't really want to merge that file right now - I have another branch that I need to work on, and I will get back to this branch later to resolve the merge.

What is the best course of action for me to "undo" this pull? Or how can I hold off on this merge until I'm ready to deal with it? What do I need to do to be able to change branches, but then return to this unmerged state in my code?
2012  git  tips  example  cli  unix  linux  windows  macosx  forumthread  stackexchange 
2 days ago by ezequiel
BashFAQ - Greg's Wiki
These are answers to frequently asked questions on channel #bash on the freenode IRC network. These answers are contributed by the regular members of the channel (originally heiner, and then others including greycat and r00t), and by users like you. If you find something inaccurate or simply misspelled, please feel free to correct it!
bash  faq  shell  wiki  tips  example  howto  posix  unix  linux 
3 days ago by ezequiel
How to keep quotes in Bash arguments? - Stack Overflow
Q: I have a Bash script where I want to keep quotes in the arguments passed.

Example: ./ this is "some test"

then I want to use those arguments, and re-use them, including quotes and quotes around the whole argument list.
2009  shell  bash  posix  links  tips  example  forumthread  stackexchange  unix  scripting 
3 days ago by ezequiel

Copy this bookmark:

to read