alols

- friends
41 link karma
79 comment karma
send messageredditor for
what's this?

TROPHY CASE

  • dust

My lovely Prom date and I by CTgowiththeFLOWin pics

[–]alols 1 point2 points ago

which one is you?

Hilarious Unix admin tools by antrixin linux

[–]alols 12 points13 points ago

Still that's four times as fast as Bill Joy's terminal when he wrote the thing. http://www.theregister.co.uk/2003/09/11/bill_joys_greatest_gift/

ignorecase for search/command mode + noignorecase for word completion? by sickillin vim

[–]alols 5 points6 points ago

I think this will do what you want:

autocmd InsertEnter * set noic
autocmd InsertLeave * set ic

Linux utility to make control key send escape key events when pressed on its own. by alolsin vim

[–]alols[S] 0 points1 point ago

Could be. A quick and dirty hack would be to replace

if (XkbKeycodeToKeysym (self->ctrl_conn, key_code, 0, 0)
                == XK_Control_L)

with

if (key_code == 66)

in xcape.c and it should work for you.

Linux utility to make control key send escape key events when pressed on its own. by alolsin vim

[–]alols[S] 0 points1 point ago

Strange. I could not reproduce the issue. Could you please confirm that Caps Lock still works as Control? That seems to be your problem.

The Text Triumvirate by xsslin vim

[–]alols 1 point2 points ago

Thank you. I'm using gnome-terminal. Interestingly, putting

export TERM=xterm-256color

in my .bashrc solved the issue. Even though I am only using 16 colors. Nothing else has has changed. In VIm under tmux: t_Co=16 and TERM=screen, just like before. Anyways, it is working and I'm happy :)

The Text Triumvirate by xsslin vim

[–]alols 1 point2 points ago

You have convinced me to try tmux, but it renders the colors in Vim all wrong. Anybody who know what might be wrong? I am not using a 256 color terminal. GNU Screen renders the colors correctly.

Linux utility to make control key send escape key events when pressed on its own. by alolsin vim

[–]alols[S] 0 points1 point ago

It would be fairly easy to add a command line option deciding which modifier key that should act as an additional Escape when pressed by itself.. If that is what you are asking for?

Linux utility to make control key send escape key events when pressed on its own. by alolsin vim

[–]alols[S] 1 point2 points ago

The point is that Control key acts as Ecape only if it is pressed by itself, when pressed together with other keys it still works as a Control key.

Linux utility to make control key send escape key events when pressed on its own. by alolsin vim

[–]alols[S] 1 point2 points ago

Author here. Thank you for the fix! :)

Weird auto-completion behavior by pseudousernamein vim

[–]alols 0 points1 point ago

What you are doing wrong is that you are pressing enter. Press Esc to leave insert mode or keep typing.

Don't be proud of an empty vimrc by r00kin vim

[–]alols 1 point2 points ago

Pride has got nothing to do with it. Use the settings that suite you and be humble about it. I can think of several reasons for wanting a minimal vimrc. Ease of migration for one, and being able to use my colleagues terminals.

Equivalent of M,H,L but going sideways? by ktr73in vim

[–]alols 2 points3 points ago

0 and $ move on the buffer line, g0 and g$ (and gm) move on the screen line, which is what OP wanted.

convert every text file to unix format if not already? by erichzannin vim

[–]alols 3 points4 points ago

This will make it impossible to save in any other format than unix:

autocmd BufWritePre * set ff=unix

Equivalent of M,H,L but going sideways? by ktr73in vim

[–]alols 10 points11 points ago

g0 and g$ takes you to the far left and far right of the screen line.

I made a Vim function to set an option only if it's currently at its default value. by flyingmeteorin vim

[–]alols 1 point2 points ago

What is the use case?

I absolutely love vim and been using it for years. But, why does it not use the home row for navigation ? Fingers would have to travel so much less if we had "jkl;" for navigation. by arrygooin vim

[–]alols 1 point2 points ago

This question pops up once in a while and this is the usual answer. But it only answers why vi uses these keys, it does not answer why the arrows were put on those keys in the first place. I guess we will never really know how much thought that went into selecting these keys, if any.

I am using a simple texteditor for my coding, should I bother learning vim? by fishtankin vim

[–]alols 0 points1 point ago

Would learning vim improve my workflow

Most certainly yes.

or is this something for larger/more complicated projects only, more of an alternative to eclipse?

No. Eclipse is an IDE, Vim is not an IDE, it is a text editor. However, some people prefer text editors over IDEs. So yes it is an alternative to Eclipse, also.

how to remap <ESC> in normal mode? by Samus_in vim

[–]alols 2 points3 points ago

Use nnoremap instead of nmap so it won't mess with your other mappings.

How do you do a search and replace (substitution) within the current block of text? by FictiveKinin vim

[–]alols 0 points1 point ago

Assuming you mean the current paragraph:

 :'{,'}s/old/new/g

Vim for prose, what are your tips? by 1337_n00bin vim

[–]alols 0 points1 point ago

Because of this I always hard-wrap my text when working with prose. If I need to paste it into a word processor I use this:

https://gist.github.com/1420072

Anyone who uses a lot of marks or registers? How do you remember them? by alolsin vim

[–]alols[S] 0 points1 point ago

This is exactly the same way I use them.

I think it would be very handy to use more of them though if I only could remember them.

Anyone who uses a lot of marks or registers? How do you remember them? by alolsin vim

[–]alols[S] 2 points3 points ago

I was hoping that somebody would point me to something like that.

view more: next